﻿using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{

    public partial class VABPOS
    {
        public void SetUpNewRow(ref DataRow dwReturn, DataRow dwInput)
        {
            #region
            #endregion
            switch (app.company)
            {
                case "FLT":
                    DataSet SResult = new DataSet();
                    SResult = QueryABPOS(dwInput, 0);
                    dwReturn = SResult.Tables[0].Rows[0];
                    #region
                    dwReturn["ABPMANDANT"] = app.Mandant;
                    dwReturn["ABPAUFKRS"] = "D7";
                    dwReturn["ABPAUFLFD"] = "000109";
                    dwReturn["ABPAUFPOS"] = "004";
                    dwReturn["ABPVFAUFKRS"] = "  ";
                    dwReturn["ABPVFAUFLFD"] = "000000";
                    dwReturn["ABPVFAUFPOS"] = "000";
                    dwReturn["ABPAUFART"] = "GP";
                    dwReturn["ABPAUFST"] = " ";
                    dwReturn["ABPAUFSTV"] = "0";
                    dwReturn["ABPAUFSTB"] = "0";
                    dwReturn["ABPAUTO"] = " ";
                    dwReturn["ABPPRIO"] = "00";
                    dwReturn["ABPTLVF"] = "   ";
                    dwReturn["ABPDIVARTKZ"] = " ";
                    dwReturn["ABPKUNDNR"] = "00000000";
                    dwReturn["ABPWERK"] = "   ";
                    dwReturn["ABPABT"] = "   ";
                    dwReturn["ABPWAKZ"] = "G";
                    dwReturn["ABPART"] = "400157.NM.5.1       ";
                    dwReturn["ABPVAR"] = "   ";
                    dwReturn["ABPFARBE"] = "GA6042    ";
                    dwReturn["ABPDESS"] = "          ";
                    dwReturn["ABPCOLORIT"] = "          ";
                    dwReturn["ABPBESCHICH"] = "          ";
                    dwReturn["ABPGROE"] = "       ";
                    dwReturn["ABPAUFM"] = "  ";
                    dwReturn["ABPVERP"] = "   ";
                    dwReturn["ABPANZVP"] = "0";
                    dwReturn["ABPFWARTGRA"] = "     ";
                    dwReturn["ABPFWARTGRP"] = "  ";
                    dwReturn["ABPZLO"] = "FI";
                    dwReturn["ABPZLB"] = "OP";
                    dwReturn["ABPBLO"] = "  ";
                    dwReturn["ABPSME"] = "5";
                    dwReturn["ABPSOLLMENGE1"] = "0";
                    dwReturn["ABPSOLLMENGE2"] = "0";
                    dwReturn["ABPSOLLMENGE3"] = "0";
                    dwReturn["ABPSOLLMENGE4"] = "0";
                    dwReturn["ABPSOLLMENGE5"] = "1769";
                    dwReturn["ABPSOLLMENGE6"] = "0";
                    dwReturn["ABPSOLLMENGE7"] = "0";
                    dwReturn["ABPSOLLMENGE8"] = "0";
                    dwReturn["ABPRESMGE"] = "0";
                    dwReturn["ABPRESKG"] = "0";
                    dwReturn["ABPRESSTK"] = "0";
                    dwReturn["ABPZUGET"] = "0";
                    dwReturn["ABPZUGKG"] = "1769";
                    dwReturn["ABPZUGSTK"] = "0";
                    dwReturn["ABPDILFM"] = "0";
                    dwReturn["ABPDIKG"] = "0";
                    dwReturn["ABPDISTK"] = "0";
                    dwReturn["ABPZTLGKOMP"] = "J";
                    dwReturn["ABPSMGKZZU"] = "J";
                    dwReturn["ABPVLLFM"] = "0";
                    dwReturn["ABPVLKG"] = "0";
                    dwReturn["ABPVLSTK"] = "0";
                    dwReturn["ABPEALFM"] = "0";
                    dwReturn["ABPEAKG"] = "1647";
                    dwReturn["ABPEASTK"] = "0";
                    dwReturn["ABPEBLFM"] = "0";
                    dwReturn["ABPEBKG"] = "0";
                    dwReturn["ABPEBSTK"] = "0";
                    dwReturn["ABPABLFM"] = "0";
                    dwReturn["ABPABKG"] = "0";
                    dwReturn["ABPABSTK"] = "0";
                    dwReturn["ABPVSLFM"] = "0";
                    dwReturn["ABPVSKG"] = "0";
                    dwReturn["ABPVSSTK"] = "0";
                    dwReturn["ABPRTLFM"] = "0";
                    dwReturn["ABPRTKG"] = "0";
                    dwReturn["ABPRTSTK"] = "0";
                    dwReturn["ABPROHWDAT"] = "0";
                    dwReturn["ABPKDDAT"] = "0";
                    dwReturn["ABPWVDAT"] = "0";
                    dwReturn["ABPLIEFDAT"] = "20070820";
                    dwReturn["ABPLRUECK"] = "0";
                    dwReturn["ABPLRDATE"] = "0";
                    dwReturn["ABPDLR"] = "  ";
                    dwReturn["ABPVTRUECK"] = "0";
                    dwReturn["ABPVTDATE"] = "0";
                    dwReturn["ABPUNKLAR"] = " ";
                    dwReturn["ABPVERSDAT"] = "0";
                    dwReturn["ABPFREIDAT"] = "0";
                    dwReturn["ABPSTARTDAT"] = "20070816";
                    dwReturn["ABPENDDAT"] = "20070820";
                    dwReturn["ABPSTARTDATA"] = "20070816";
                    dwReturn["ABPENDDATA"] = "20070820";
                    dwReturn["ABPLTERMAK"] = "0";
                    dwReturn["ABPBESTDAT"] = "0";
                    dwReturn["ABPANRKR"] = "XH";
                    dwReturn["ABPALFDNR"] = "000002";
                    dwReturn["ABPAFOLGEV"] = "000";
                    dwReturn["ABPAFOLGEB"] = "000";
                    dwReturn["ABPANRKR2"] = "  ";
                    dwReturn["ABPALFDNR2"] = "000000";
                    dwReturn["ABPAFOLGEV2"] = "0";
                    dwReturn["ABPAFOLGEB2"] = "0";
                    dwReturn["ABPANRKR3"] = "  ";
                    dwReturn["ABPALFDNR3"] = "000000";
                    dwReturn["ABPAFOLGEV3"] = "0";
                    dwReturn["ABPAFOLGEB3"] = "0";
                    dwReturn["ABPANRKR4"] = "  ";
                    dwReturn["ABPALFDNR4"] = "000000";
                    dwReturn["ABPAFOLGEV4"] = "0";
                    dwReturn["ABPAFOLGEB4"] = "0";
                    dwReturn["ABPVERSAEND"] = " ";
                    dwReturn["ABPVERSZL"] = "006";
                    dwReturn["ABPTLFREIG"] = "000";
                    dwReturn["ABPTLFMG"] = "0";
                    dwReturn["ABPFREIGKZ"] = " ";
                    dwReturn["ABPLMAFOLGE"] = "000";
                    dwReturn["ABPENDAUFM"] = "10";
                    dwReturn["ABPZAUFM"] = "  ";
                    dwReturn["ABPLIEFNR"] = "00132026";
                    dwReturn["ABPGESSTA"] = "TE";
                    dwReturn["ABPKDSTA"] = "10";
                    dwReturn["ABPWSSTA"] = "20";
                    dwReturn["ABPAPSTA"] = "30";
                    dwReturn["ABPRZSTA"] = "40";
                    dwReturn["ABPWPSTA"] = "57";
                    dwReturn["ABPWBSTA"] = "60";
                    dwReturn["ABPABSTA"] = "70";
                    dwReturn["ABPERLKZ"] = "J";
                    dwReturn["ABPERLDAT"] = "20070926";
                    dwReturn["ABPBEWKZ"] = " ";
                    dwReturn["ABPDRKZ1"] = " ";
                    dwReturn["ABPDRKZ2"] = " ";
                    dwReturn["ABPDRKZ3"] = " ";
                    dwReturn["ABPDRKZ4"] = " ";
                    dwReturn["ABPDRKZ5"] = " ";
                    dwReturn["ABPDRKZ6"] = " ";
                    dwReturn["ABPDRKZ7"] = " ";
                    dwReturn["ABPDRKZ8"] = " ";
                    dwReturn["ABPDRKZ9"] = " ";
                    dwReturn["ABPDRKZ10"] = " ";
                    dwReturn["ABPDR1USER"] = "        ";
                    dwReturn["ABPDR1DAT"] = "00000000";
                    dwReturn["ABPDR8USER"] = "        ";
                    dwReturn["ABPDR8DAT"] = "00000000";
                    dwReturn["ABPRETOURZL"] = "0";
                    dwReturn["ABPRPCOUNTAK"] = "0";
                    dwReturn["ABPURAUFKRS"] = "  ";
                    dwReturn["ABPURAUFLFD"] = "000000";
                    dwReturn["ABPURAUFPOS"] = "000";
                    dwReturn["ABPASAUFKRS"] = "  ";
                    dwReturn["ABPASAUFLFD"] = "000000";
                    dwReturn["ABPASAUFPOS"] = "000";
                    dwReturn["ABPREAFOLGE"] = "000";
                    dwReturn["ABPRWKRS"] = "  ";
                    dwReturn["ABPRWLFD"] = "000000";
                    dwReturn["ABPSTKNRKR"] = "  ";
                    dwReturn["ABPSERIE"] = "  ";
                    dwReturn["ABPAGBKZ"] = " ";
                    dwReturn["ABPWAART"] = "   ";
                    dwReturn["ABPANZSTK"] = "0";
                    dwReturn["ABPZUGETGES"] = "0";
                    dwReturn["ABPSTKKZ"] = " ";
                    dwReturn["ABPSTKLG"] = "0";
                    dwReturn["ABPANZSTKR"] = "0";
                    dwReturn["ABPABZKZ"] = " ";
                    dwReturn["ABPBDEKZ"] = "N";
                    dwReturn["ABPSUBSYS"] = "  ";
                    dwReturn["ABPDATBDE"] = "0";
                    dwReturn["ABPUHRBDE"] = "0";
                    dwReturn["ABPDISPOKZ"] = " ";
                    dwReturn["ABPSCHLICHTE"] = "     ";
                    dwReturn["ABPZZUSATZ"] = "          ";
                    dwReturn["ABPZZUSKZ"] = " ";
                    dwReturn["ABPSZUSTAND"] = "    ";
                    dwReturn["ABPIZUSTAND"] = "    ";
                    dwReturn["ABPSZUSATZKZ1"] = " ";
                    dwReturn["ABPSZUSATZKZ2"] = " ";
                    dwReturn["ABPSZUSATZKZ3"] = " ";
                    dwReturn["ABPSZUSATZKZ4"] = " ";
                    dwReturn["ABPWERKE"] = " ";
                    dwReturn["ABPLBMUSTR"] = "   ";
                    dwReturn["ABPFBMUSTR"] = "   ";
                    dwReturn["ABPREAUFKRS"] = "  ";
                    dwReturn["ABPREAUFLFD"] = "000000";
                    dwReturn["ABPREAUFPOS"] = "000";
                    dwReturn["ABPLTVORL"] = "               ";
                    dwReturn["ABPFDZ"] = "0";
                    dwReturn["ABPARTEX"] = "                                                            ";
                    dwReturn["ABPLETEILNR"] = "0";
                    dwReturn["ABPANSNR"] = "0";
                    dwReturn["ABPUPOS"] = "0";
                    dwReturn["ABPTP"] = "0";
                    dwReturn["ABPLBDENR"] = "0";
                    dwReturn["ABPTMCOUNT"] = "0";
                    dwReturn["ABPTMCOUNTAK"] = "0";
                    dwReturn["ABPKDPARTIE"] = "          ";
                    dwReturn["ABPBAHNKZ"] = " ";
                    dwReturn["ABPGAENGE"] = "0";
                    dwReturn["ABPZWTWAHL"] = "0";
                    dwReturn["ABPDIVWLFM"] = "0";
                    dwReturn["ABPDIVWKG"] = "0";
                    dwReturn["ABPDISPOST"] = " ";
                    dwReturn["ABPKETTAUFT"] = " ";
                    dwReturn["ABPKETTGARN"] = " ";
                    dwReturn["ABPSPGRD"] = "  ";
                    dwReturn["ABPSPBENID"] = "        ";
                    dwReturn["ABPSPDAT"] = "0";
                    dwReturn["ABPLMDAT"] = "0";
                    dwReturn["ABPLMZT"] = "0";
                    dwReturn["ABPWPLKZ"] = " ";
                    dwReturn["ABPKKUNDNR"] = "        ";
                    dwReturn["ABPKLAND"] = "   ";
                    dwReturn["ABPKVB"] = "   ";
                    dwReturn["ABPKVG"] = "   ";
                    dwReturn["ABPKPROGRP"] = "   ";
                    dwReturn["ABPKARTGRP"] = "   ";
                    dwReturn["ABPKVKZ"] = " ";
                    dwReturn["ABPLAEVON"] = "0";
                    dwReturn["ABPLAEBIS"] = "0";
                    dwReturn["ABPSTDLAE"] = "0";
                    dwReturn["ABPMGV"] = "0";
                    dwReturn["ABPMGB"] = "0";
                    dwReturn["ABPPAS"] = "0";
                    dwReturn["ABPPAI"] = "0";
                    dwReturn["ABPAZUTEIL"] = " ";
                    dwReturn["ABPZUTART"] = " ";
                    dwReturn["ABPFA"] = "0";
                    dwReturn["ABPGA"] = "0";
                    dwReturn["ABPQA"] = "0";
                    dwReturn["ABPMAFZST"] = "0";
                    dwReturn["ABPQPKTH"] = "0";
                    dwReturn["ABPQPKTLH"] = "0";
                    dwReturn["ABPSTKNEUTR"] = " ";
                    dwReturn["ABPREGEL"] = "00000000";
                    dwReturn["ABPSTAFFNR"] = "00";
                    dwReturn["ABPWERKEKZ"] = " ";
                    dwReturn["ABPWKSTKRS"] = "  ";
                    dwReturn["ABPWKST"] = "0000";
                    dwReturn["ABPWKART"] = "000000";
                    dwReturn["ABPWMNRKRS"] = "  ";
                    dwReturn["ABPWMLFDNR"] = "0000";
                    dwReturn["ABPWMPOS"] = "00";
                    dwReturn["ABPWMODNR"] = "000";
                    dwReturn["ABPWINTV"] = "00";
                    dwReturn["ABPWKENN"] = "  ";
                    dwReturn["ABPWSTOERGRD"] = "               ";
                    dwReturn["ABPWAKSTKRS"] = "  ";
                    dwReturn["ABPWAKST"] = "0000";
                    dwReturn["ABPWPERSNR"] = "        ";
                    dwReturn["ABPWDATV"] = "0";
                    dwReturn["ABPWZEITV"] = "0";
                    dwReturn["ABPWDATB"] = "0";
                    dwReturn["ABPWZEITB"] = "0";
                    dwReturn["ABPWSTA"] = "  ";
                    dwReturn["ABPFKALK"] = " ";
                    dwReturn["ABPLIEFDATN"] = "0";
                    dwReturn["ABPLAEAENDE"] = "0";
                    dwReturn["ABPLAEAENDA"] = "0";
                    dwReturn["ABPDMWAKZ"] = " ";
                    dwReturn["ABPDMART"] = "                    ";
                    dwReturn["ABPDMVAR"] = "  ";
                    dwReturn["ABPDMDESS"] = "          ";
                    dwReturn["ABPDMCOLORIT"] = "          ";
                    dwReturn["ABPDMFARBE"] = "          ";
                    dwReturn["ABPDMBESCHICH"] = "          ";
                    dwReturn["ABPDKART"] = "  .00000            ";
                    dwReturn["ABPDKVAR"] = "00";
                    dwReturn["ABPDKFARBE"] = "  ";
                    dwReturn["ABPDKBRUT"] = "0";
                    dwReturn["ABPGENEHMKZ"] = " ";
                    dwReturn["ABPSTUEART"] = "   ";
                    dwReturn["ABPCOMPKZ"] = " ";
                    dwReturn["ABPPOSTYP"] = "ED ";
                    dwReturn["ABPORDER"] = "    ";
                    dwReturn["ABPNPGRUND"] = "   ";
                    dwReturn["ABPREWEIL"] = "  ";
                    dwReturn["ABPFSCHL"] = "   ";
                    dwReturn["ABPKSTKRS"] = "  ";
                    dwReturn["ABPKST"] = "0000";
                    dwReturn["ABPMURW"] = " ";
                    dwReturn["ABPMUVB"] = " ";
                    dwReturn["ABPMUFW"] = " ";
                    dwReturn["ABPMUPF"] = " ";
                    dwReturn["ABPERSTFB"] = " ";
                    dwReturn["ABPERSTDR"] = " ";
                    dwReturn["ABPERSTBE"] = " ";
                    dwReturn["ABPMUCTOD"] = " ";
                    dwReturn["ABPKDFREI"] = " ";
                    dwReturn["ABPREZFB"] = " ";
                    dwReturn["ABPREZDR"] = " ";
                    dwReturn["ABPPRUEF"] = " ";
                    dwReturn["ABPNIXWE"] = " ";
                    dwReturn["ABPCOLSTA"] = " ";
                    dwReturn["ABPFBSTA"] = " ";
                    dwReturn["ABPBAHNNR"] = "0";
                    dwReturn["ABPBAHNBRT"] = "0";
                    dwReturn["ABPFLBEDECK"] = "0";
                    dwReturn["ABPTGUEBL"] = "0";
                    dwReturn["ABPLOEKZ"] = " ";
                    dwReturn["ABPTERMDAT"] = "20070816";
                    dwReturn["ABPPRFI"] = " ";
                    dwReturn["ABPPRVAR"] = " ";
                    dwReturn["ABPPRBE"] = " ";
                    dwReturn["ABPPRZU"] = " ";
                    dwReturn["ABPPRDESS"] = " ";
                    dwReturn["ABPZUSATZ1"] = " ";
                    dwReturn["ABPZUSATZ2"] = " ";
                    dwReturn["ABPZUSATZ3"] = " ";
                    dwReturn["ABPZUSATZ4"] = " ";
                    dwReturn["ABPZUSATZ5"] = " ";
                    dwReturn["ABPFLAG1"] = "0";
                    dwReturn["ABPFLAG2"] = "0";
                    dwReturn["ABPFLAG3"] = "0";
                    dwReturn["ABPFLAG4"] = "0";
                    dwReturn["ABPFLAG5"] = "0";
                    dwReturn["ABPORGMG"] = "0";
                    dwReturn["ABPDIFFMG"] = "0";
                    dwReturn["ABPRARTKZ"] = " ";
                    dwReturn["ABPSTARTDATN"] = "00000000";
                    dwReturn["ABPAESTAT"] = " ";
                    dwReturn["ABPLBAUFKRS"] = "  ";
                    dwReturn["ABPLBAUFLFD"] = "000000";
                    dwReturn["ABPLBAUFPOS"] = "000";
                    dwReturn["ABPVEAUFTRAG"] = "               ";
                    dwReturn["ABPREGBLOG"] = "0";
                    dwReturn["ABPREGBDATE"] = "0";
                    dwReturn["ABPPROJNR"] = "                        ";
                    dwReturn["ABPSHADE"] = "   ";
                    dwReturn["ABPSHADEUNCL"] = " ";
                    dwReturn["ABPLICHTART"] = "     ";
                    dwReturn["ABPLINE"] = "   ";
                    dwReturn["ABPVERL"] = " ";
                    dwReturn["ABPAUSGBRT"] = "0";
                    dwReturn["ABPEINGBRT"] = "0";
                    dwReturn["ABPFILLER1"] = "                                                                                                         ";
                    dwReturn["ABPAENDZL"] = "10";
                    dwReturn["ABPAENDBEN"] = "JESSIE  ";
                    dwReturn["ABPAENDDAT"] = "0";
                    dwReturn["ABPNEUBEN"] = "JESSIE  ";
                    dwReturn["ABPNEUDAT"] = "20070816";
                    #endregion
                    break;
                default:
                case "YGR":
                case "SXN":
                case "TST":
                    #region====YGR======
                    dwReturn["ABPMANDANT"] = app.Mandant;
                    dwReturn["ABPAUFKRS"] = "  ";
                    dwReturn["ABPAUFLFD"] = "000000";
                    dwReturn["ABPAUFPOS"] = "   ";
                    dwReturn["ABPVFAUFKRS"] = "  ";
                    dwReturn["ABPVFAUFLFD"] = "000000";
                    dwReturn["ABPVFAUFPOS"] = "000";
                    dwReturn["ABPAUFART"] = "  ";
                    dwReturn["ABPAUFST"] = " ";
                    dwReturn["ABPAUFSTV"] = "0";
                    dwReturn["ABPAUFSTB"] = "0";
                    dwReturn["ABPAUTO"] = " ";
                    dwReturn["ABPPRIO"] = "00";
                    dwReturn["ABPTLVF"] = "   ";
                    dwReturn["ABPDIVARTKZ"] = "N";
                    dwReturn["ABPKUNDNR"] = "00000000";
                    dwReturn["ABPWERK"] = "   ";
                    dwReturn["ABPABT"] = "   ";
                    dwReturn["ABPWAKZ"] = "G";
                    dwReturn["ABPART"] = "                    ";
                    dwReturn["ABPVAR"] = "   ";
                    dwReturn["ABPFARBE"] = "    1     ";
                    dwReturn["ABPDESS"] = "          ";
                    dwReturn["ABPCOLORIT"] = "          ";
                    dwReturn["ABPBESCHICH"] = "          ";
                    dwReturn["ABPGROE"] = "       ";
                    dwReturn["ABPAUFM"] = "  ";
                    dwReturn["ABPVERP"] = "   ";
                    dwReturn["ABPANZVP"] = "0";
                    dwReturn["ABPFWARTGRA"] = "     ";
                    dwReturn["ABPFWARTGRP"] = "  ";
                    dwReturn["ABPZLO"] = "01";
                    dwReturn["ABPZLB"] = "  ";
                    dwReturn["ABPBLO"] = "  ";
                    dwReturn["ABPSME"] = "5";
                    dwReturn["ABPSOLLMENGE1"] = "0";
                    dwReturn["ABPSOLLMENGE2"] = "0";
                    dwReturn["ABPSOLLMENGE3"] = "0";
                    dwReturn["ABPSOLLMENGE4"] = "0";
                    dwReturn["ABPSOLLMENGE5"] = "0";
                    dwReturn["ABPSOLLMENGE6"] = "0";
                    dwReturn["ABPSOLLMENGE7"] = "0";
                    dwReturn["ABPSOLLMENGE8"] = "0";
                    dwReturn["ABPRESMGE"] = "0";
                    dwReturn["ABPRESKG"] = "0";
                    dwReturn["ABPRESSTK"] = "0";
                    dwReturn["ABPZUGET"] = "0";
                    dwReturn["ABPZUGKG"] = "0";
                    dwReturn["ABPZUGSTK"] = "0";
                    dwReturn["ABPDILFM"] = "0";
                    dwReturn["ABPDIKG"] = "0";
                    dwReturn["ABPDISTK"] = "0";
                    dwReturn["ABPZTLGKOMP"] = " ";
                    dwReturn["ABPSMGKZZU"] = " ";
                    dwReturn["ABPVLLFM"] = "0";
                    dwReturn["ABPVLKG"] = "0";
                    dwReturn["ABPVLSTK"] = "0";
                    dwReturn["ABPEALFM"] = "0";
                    dwReturn["ABPEAKG"] = "0";
                    dwReturn["ABPEASTK"] = "0";
                    dwReturn["ABPEBLFM"] = "0";
                    dwReturn["ABPEBKG"] = "0";
                    dwReturn["ABPEBSTK"] = "0";
                    dwReturn["ABPABLFM"] = "0";
                    dwReturn["ABPABKG"] = "0";
                    dwReturn["ABPABSTK"] = "0";
                    dwReturn["ABPVSLFM"] = "0";
                    dwReturn["ABPVSKG"] = "0";
                    dwReturn["ABPVSSTK"] = "0";
                    dwReturn["ABPRTLFM"] = "0";
                    dwReturn["ABPRTKG"] = "0";
                    dwReturn["ABPRTSTK"] = "0";
                    dwReturn["ABPROHWDAT"] = "0";
                    dwReturn["ABPKDDAT"] = "0";
                    dwReturn["ABPWVDAT"] = "0";
                    dwReturn["ABPLIEFDAT"] = "0";
                    dwReturn["ABPLRUECK"] = "0";
                    dwReturn["ABPLRDATE"] = "0";
                    dwReturn["ABPDLR"] = "  ";
                    dwReturn["ABPVTRUECK"] = "0";
                    dwReturn["ABPVTDATE"] = "0";
                    dwReturn["ABPUNKLAR"] = " ";
                    dwReturn["ABPVERSDAT"] = "0";
                    dwReturn["ABPFREIDAT"] = "0";
                    dwReturn["ABPSTARTDAT"] = "0";
                    dwReturn["ABPENDDAT"] = "0";
                    dwReturn["ABPSTARTDATA"] = "0";
                    dwReturn["ABPENDDATA"] = "0";
                    dwReturn["ABPLTERMAK"] = "0";
                    dwReturn["ABPBESTDAT"] = "0";
                    dwReturn["ABPANRKR"] = "  ";
                    dwReturn["ABPALFDNR"] = "000000";
                    dwReturn["ABPAFOLGEV"] = "000";
                    dwReturn["ABPAFOLGEB"] = "000";
                    dwReturn["ABPANRKR2"] = "  ";
                    dwReturn["ABPALFDNR2"] = "000000";
                    dwReturn["ABPAFOLGEV2"] = "0";
                    dwReturn["ABPAFOLGEB2"] = "0";
                    dwReturn["ABPANRKR3"] = "  ";
                    dwReturn["ABPALFDNR3"] = "000000";
                    dwReturn["ABPAFOLGEV3"] = "0";
                    dwReturn["ABPAFOLGEB3"] = "0";
                    dwReturn["ABPANRKR4"] = "  ";
                    dwReturn["ABPALFDNR4"] = "000000";
                    dwReturn["ABPAFOLGEV4"] = "0";
                    dwReturn["ABPAFOLGEB4"] = "0";
                    dwReturn["ABPVERSAEND"] = " ";
                    dwReturn["ABPVERSZL"] = "000";
                    dwReturn["ABPTLFREIG"] = "000";
                    dwReturn["ABPTLFMG"] = "0";
                    dwReturn["ABPFREIGKZ"] = " ";
                    dwReturn["ABPLMAFOLGE"] = "000";
                    dwReturn["ABPENDAUFM"] = "  ";
                    dwReturn["ABPZAUFM"] = "  ";
                    dwReturn["ABPLIEFNR"] = "        ";
                    dwReturn["ABPGESSTA"] = "TE";
                    dwReturn["ABPKDSTA"] = "10";
                    dwReturn["ABPWSSTA"] = "20";
                    dwReturn["ABPAPSTA"] = "30";
                    dwReturn["ABPRZSTA"] = "40";
                    dwReturn["ABPWPSTA"] = "50";
                    dwReturn["ABPWBSTA"] = "68";
                    dwReturn["ABPABSTA"] = "70";
                    dwReturn["ABPERLKZ"] = " ";
                    dwReturn["ABPERLDAT"] = "0";
                    dwReturn["ABPBEWKZ"] = " ";
                    dwReturn["ABPDRKZ1"] = " ";
                    dwReturn["ABPDRKZ2"] = " ";
                    dwReturn["ABPDRKZ3"] = " ";
                    dwReturn["ABPDRKZ4"] = " ";
                    dwReturn["ABPDRKZ5"] = " ";
                    dwReturn["ABPDRKZ6"] = " ";
                    dwReturn["ABPDRKZ7"] = " ";
                    dwReturn["ABPDRKZ8"] = " ";
                    dwReturn["ABPDRKZ9"] = " ";
                    dwReturn["ABPDRKZ10"] = " ";
                    dwReturn["ABPDR1USER"] = "        ";
                    dwReturn["ABPDR1DAT"] = "00000000";
                    dwReturn["ABPDR8USER"] = "        ";
                    dwReturn["ABPDR8DAT"] = "00000000";
                    dwReturn["ABPRETOURZL"] = "0";
                    dwReturn["ABPRPCOUNTAK"] = "0";
                    dwReturn["ABPURAUFKRS"] = "  ";
                    dwReturn["ABPURAUFLFD"] = "000000";
                    dwReturn["ABPURAUFPOS"] = "000";
                    dwReturn["ABPASAUFKRS"] = "  ";
                    dwReturn["ABPASAUFLFD"] = "000000";
                    dwReturn["ABPASAUFPOS"] = "000";
                    dwReturn["ABPREAFOLGE"] = "000";
                    dwReturn["ABPRWKRS"] = "  ";
                    dwReturn["ABPRWLFD"] = "000000";
                    dwReturn["ABPSTKNRKR"] = "  ";
                    dwReturn["ABPSERIE"] = "  ";
                    dwReturn["ABPAGBKZ"] = " ";
                    dwReturn["ABPWAART"] = "   ";
                    dwReturn["ABPANZSTK"] = "0";
                    dwReturn["ABPZUGETGES"] = "0";
                    dwReturn["ABPSTKKZ"] = " ";
                    dwReturn["ABPSTKLG"] = "0";
                    dwReturn["ABPANZSTKR"] = "0";
                    dwReturn["ABPABZKZ"] = " ";
                    dwReturn["ABPBDEKZ"] = "N";
                    dwReturn["ABPSUBSYS"] = "  ";
                    dwReturn["ABPDATBDE"] = "0";
                    dwReturn["ABPUHRBDE"] = "0";
                    dwReturn["ABPDISPOKZ"] = " ";
                    dwReturn["ABPSCHLICHTE"] = "     ";
                    dwReturn["ABPZZUSATZ"] = "          ";
                    dwReturn["ABPZZUSKZ"] = " ";
                    dwReturn["ABPSZUSTAND"] = "    ";
                    dwReturn["ABPIZUSTAND"] = "    ";
                    dwReturn["ABPSZUSATZKZ1"] = " ";
                    dwReturn["ABPSZUSATZKZ2"] = " ";
                    dwReturn["ABPSZUSATZKZ3"] = " ";
                    dwReturn["ABPSZUSATZKZ4"] = " ";
                    dwReturn["ABPWERKE"] = " ";
                    dwReturn["ABPLBMUSTR"] = "   ";
                    dwReturn["ABPFBMUSTR"] = "   ";
                    dwReturn["ABPREAUFKRS"] = "  ";
                    dwReturn["ABPREAUFLFD"] = "000000";
                    dwReturn["ABPREAUFPOS"] = "000";
                    dwReturn["ABPLTVORL"] = "               ";
                    dwReturn["ABPFDZ"] = "0";
                    dwReturn["ABPARTEX"] = "                                                            ";
                    dwReturn["ABPLETEILNR"] = "0";
                    dwReturn["ABPANSNR"] = "0";
                    dwReturn["ABPUPOS"] = "0";
                    dwReturn["ABPTP"] = "0";
                    dwReturn["ABPLBDENR"] = "0";
                    dwReturn["ABPTMCOUNT"] = "1";
                    dwReturn["ABPTMCOUNTAK"] = "0";
                    dwReturn["ABPKDPARTIE"] = "          ";
                    dwReturn["ABPBAHNKZ"] = " ";
                    dwReturn["ABPGAENGE"] = "0";
                    dwReturn["ABPZWTWAHL"] = "0";
                    dwReturn["ABPDIVWLFM"] = "0";
                    dwReturn["ABPDIVWKG"] = "0";
                    dwReturn["ABPDISPOST"] = " ";
                    dwReturn["ABPKETTAUFT"] = " ";
                    dwReturn["ABPKETTGARN"] = " ";
                    dwReturn["ABPSPGRD"] = "  ";
                    dwReturn["ABPSPBENID"] = "        ";
                    dwReturn["ABPSPDAT"] = "0";
                    dwReturn["ABPLMDAT"] = "0";
                    dwReturn["ABPLMZT"] = "0";
                    dwReturn["ABPWPLKZ"] = " ";
                    dwReturn["ABPKKUNDNR"] = "        ";
                    dwReturn["ABPKLAND"] = "   ";
                    dwReturn["ABPKVB"] = "   ";
                    dwReturn["ABPKVG"] = "   ";
                    dwReturn["ABPKPROGRP"] = "   ";
                    dwReturn["ABPKARTGRP"] = "   ";
                    dwReturn["ABPKVKZ"] = " ";
                    dwReturn["ABPLAEVON"] = "0";
                    dwReturn["ABPLAEBIS"] = "0";
                    dwReturn["ABPSTDLAE"] = "0";
                    dwReturn["ABPMGV"] = "0";
                    dwReturn["ABPMGB"] = "0";
                    dwReturn["ABPPAS"] = "0";
                    dwReturn["ABPPAI"] = "0";
                    dwReturn["ABPAZUTEIL"] = " ";
                    dwReturn["ABPZUTART"] = " ";
                    dwReturn["ABPFA"] = "0";
                    dwReturn["ABPGA"] = "0";
                    dwReturn["ABPQA"] = "0";
                    dwReturn["ABPMAFZST"] = "0";
                    dwReturn["ABPQPKTH"] = "0";
                    dwReturn["ABPQPKTLH"] = "0";
                    dwReturn["ABPSTKNEUTR"] = " ";
                    dwReturn["ABPREGEL"] = "00000000";
                    dwReturn["ABPSTAFFNR"] = "00";
                    dwReturn["ABPWERKEKZ"] = " ";
                    dwReturn["ABPWKSTKRS"] = "  ";
                    dwReturn["ABPWKST"] = "0000";
                    dwReturn["ABPWKART"] = "000000";
                    dwReturn["ABPWMNRKRS"] = "  ";
                    dwReturn["ABPWMLFDNR"] = "0000";
                    dwReturn["ABPWMPOS"] = "00";
                    dwReturn["ABPWMODNR"] = "000";
                    dwReturn["ABPWINTV"] = "00";
                    dwReturn["ABPWKENN"] = "  ";
                    dwReturn["ABPWSTOERGRD"] = "               ";
                    dwReturn["ABPWAKSTKRS"] = "  ";
                    dwReturn["ABPWAKST"] = "0000";
                    dwReturn["ABPWPERSNR"] = "        ";
                    dwReturn["ABPWDATV"] = "0";
                    dwReturn["ABPWZEITV"] = "0";
                    dwReturn["ABPWDATB"] = "0";
                    dwReturn["ABPWZEITB"] = "0";
                    dwReturn["ABPWSTA"] = "  ";
                    dwReturn["ABPFKALK"] = " ";
                    dwReturn["ABPLIEFDATN"] = "0";
                    dwReturn["ABPLAEAENDE"] = "0";
                    dwReturn["ABPLAEAENDA"] = "0";
                    dwReturn["ABPDMWAKZ"] = " ";
                    dwReturn["ABPDMART"] = "                    ";
                    dwReturn["ABPDMVAR"] = "  ";
                    dwReturn["ABPDMDESS"] = "          ";
                    dwReturn["ABPDMCOLORIT"] = "          ";
                    dwReturn["ABPDMFARBE"] = "          ";
                    dwReturn["ABPDMBESCHICH"] = "          ";
                    dwReturn["ABPDKART"] = "                    ";
                    dwReturn["ABPDKVAR"] = "  ";
                    dwReturn["ABPDKFARBE"] = "  ";
                    dwReturn["ABPDKBRUT"] = "0";
                    dwReturn["ABPGENEHMKZ"] = " ";
                    dwReturn["ABPSTUEART"] = "   ";
                    dwReturn["ABPCOMPKZ"] = " ";
                    dwReturn["ABPPOSTYP"] = "   ";
                    dwReturn["ABPORDER"] = "    ";
                    dwReturn["ABPNPGRUND"] = "   ";
                    dwReturn["ABPREWEIL"] = "  ";
                    dwReturn["ABPFSCHL"] = "   ";
                    dwReturn["ABPKSTKRS"] = "  ";
                    dwReturn["ABPKST"] = "0000";
                    dwReturn["ABPMURW"] = " ";
                    dwReturn["ABPMUVB"] = " ";
                    dwReturn["ABPMUFW"] = " ";
                    dwReturn["ABPMUPF"] = " ";
                    dwReturn["ABPERSTFB"] = " ";
                    dwReturn["ABPERSTDR"] = " ";
                    dwReturn["ABPERSTBE"] = " ";
                    dwReturn["ABPMUCTOD"] = " ";
                    dwReturn["ABPKDFREI"] = " ";
                    dwReturn["ABPREZFB"] = " ";
                    dwReturn["ABPREZDR"] = " ";
                    dwReturn["ABPPRUEF"] = " ";
                    dwReturn["ABPNIXWE"] = " ";
                    dwReturn["ABPCOLSTA"] = " ";
                    dwReturn["ABPFBSTA"] = " ";
                    dwReturn["ABPBAHNNR"] = "0";
                    dwReturn["ABPBAHNBRT"] = "0";
                    dwReturn["ABPFLBEDECK"] = "0";
                    dwReturn["ABPDATABDE"] = "00000000";
                    dwReturn["ABPUHRABDE"] = "000000";
                    dwReturn["ABPLOEKZ"] = " ";
                    dwReturn["ABPTERMDAT"] = "0";
                    dwReturn["ABPPRFI"] = " ";
                    dwReturn["ABPPRVAR"] = " ";
                    dwReturn["ABPPRBE"] = " ";
                    dwReturn["ABPPRZU"] = " ";
                    dwReturn["ABPPRDESS"] = " ";
                    dwReturn["ABPZUSATZ1"] = " ";
                    dwReturn["ABPZUSATZ2"] = " ";
                    dwReturn["ABPZUSATZ3"] = " ";
                    dwReturn["ABPZUSATZ4"] = " ";
                    dwReturn["ABPZUSATZ5"] = " ";
                    dwReturn["ABPFLAG1"] = "0";
                    dwReturn["ABPFLAG2"] = "0";
                    dwReturn["ABPFLAG3"] = "0";
                    dwReturn["ABPFLAG4"] = "0";
                    dwReturn["ABPFLAG5"] = "0";
                    dwReturn["ABPORGMG"] = "0";
                    dwReturn["ABPDIFFMG"] = "0";
                    dwReturn["ABPRARTKZ"] = " ";
                    dwReturn["ABPSTARTDATN"] = "0";
                    dwReturn["ABPAESTAT"] = " ";
                    dwReturn["ABPLBAUFKRS"] = "  ";
                    dwReturn["ABPLBAUFLFD"] = "000000";
                    dwReturn["ABPLBAUFPOS"] = "000";
                    dwReturn["ABPVEAUFTRAG"] = "               ";
                    dwReturn["ABPREGBLOG"] = "0";
                    dwReturn["ABPREGBDATE"] = "0";
                    dwReturn["ABPPROJNR"] = "                        ";
                    dwReturn["ABPSHADE"] = "   ";
                    dwReturn["ABPSHADEUNCL"] = " ";
                    dwReturn["ABPLICHTART"] = "     ";
                    dwReturn["ABPLINE"] = "   ";
                    dwReturn["ABPFILLER1"] = "                                                                                                      ";
                    dwReturn["ABPAENDZL"] = "1";
                    dwReturn["ABPAENDBEN"] = "        ";
                    dwReturn["ABPAENDDAT"] = "0";
                    dwReturn["ABPNEUBEN"] = "        ";
                    dwReturn["ABPNEUDAT"] = "0";
                    #endregion
                    break;
                case "JLT":
                    #region====JLT=======
                    dwReturn["ABPMANDANT"] = app.Mandant;
                    dwReturn["ABPAUFKRS"] = "  ";
                    dwReturn["ABPAUFLFD"] = "000000";
                    dwReturn["ABPAUFPOS"] = "000";
                    dwReturn["ABPVFAUFKRS"] = "  ";
                    dwReturn["ABPVFAUFLFD"] = "000000";
                    dwReturn["ABPVFAUFPOS"] = "000";
                    dwReturn["ABPAUFART"] = "  ";
                    dwReturn["ABPAUFST"] = " ";
                    dwReturn["ABPAUFSTV"] = "0";
                    dwReturn["ABPAUFSTB"] = "0";
                    dwReturn["ABPAUTO"] = " ";
                    dwReturn["ABPPRIO"] = "00";
                    dwReturn["ABPTLVF"] = "   ";
                    dwReturn["ABPDIVARTKZ"] = "N";
                    dwReturn["ABPKUNDNR"] = "00000000";
                    dwReturn["ABPWERK"] = "   ";
                    dwReturn["ABPABT"] = "   ";
                    dwReturn["ABPWAKZ"] = "G";
                    dwReturn["ABPART"] = "                    ";
                    dwReturn["ABPVAR"] = "   ";
                    dwReturn["ABPFARBE"] = "          ";
                    dwReturn["ABPDESS"] = "          ";
                    dwReturn["ABPCOLORIT"] = "          ";
                    dwReturn["ABPBESCHICH"] = "          ";
                    dwReturn["ABPGROE"] = "       ";
                    dwReturn["ABPAUFM"] = "  ";
                    dwReturn["ABPVERP"] = "   ";
                    dwReturn["ABPANZVP"] = "0";
                    dwReturn["ABPFWARTGRA"] = "     ";
                    dwReturn["ABPFWARTGRP"] = "  ";
                    dwReturn["ABPZLO"] = "01";
                    dwReturn["ABPZLB"] = "ZL";
                    dwReturn["ABPBLO"] = "  ";
                    dwReturn["ABPSME"] = "2";
                    dwReturn["ABPSOLLMENGE1"] = "0";
                    dwReturn["ABPSOLLMENGE2"] = "0";
                    dwReturn["ABPSOLLMENGE3"] = "0";
                    dwReturn["ABPSOLLMENGE4"] = "0";
                    dwReturn["ABPSOLLMENGE5"] = "0";
                    dwReturn["ABPSOLLMENGE6"] = "0";
                    dwReturn["ABPSOLLMENGE7"] = "0";
                    dwReturn["ABPSOLLMENGE8"] = "0";
                    dwReturn["ABPRESMGE"] = "0";
                    dwReturn["ABPRESKG"] = "0";
                    dwReturn["ABPRESSTK"] = "0";
                    dwReturn["ABPZUGET"] = "0";
                    dwReturn["ABPZUGKG"] = "0";
                    dwReturn["ABPZUGSTK"] = "0";
                    dwReturn["ABPDILFM"] = "0";
                    dwReturn["ABPDIKG"] = "0";
                    dwReturn["ABPDISTK"] = "0";
                    dwReturn["ABPZTLGKOMP"] = " ";
                    dwReturn["ABPSMGKZZU"] = " ";
                    dwReturn["ABPVLLFM"] = "0";
                    dwReturn["ABPVLKG"] = "0";
                    dwReturn["ABPVLSTK"] = "0";
                    dwReturn["ABPEALFM"] = "0";
                    dwReturn["ABPEAKG"] = "0";
                    dwReturn["ABPEASTK"] = "0";
                    dwReturn["ABPEBLFM"] = "0";
                    dwReturn["ABPEBKG"] = "0";
                    dwReturn["ABPEBSTK"] = "0";
                    dwReturn["ABPABLFM"] = "0";
                    dwReturn["ABPABKG"] = "0";
                    dwReturn["ABPABSTK"] = "0";
                    dwReturn["ABPVSLFM"] = "0";
                    dwReturn["ABPVSKG"] = "0";
                    dwReturn["ABPVSSTK"] = "0";
                    dwReturn["ABPRTLFM"] = "0";
                    dwReturn["ABPRTKG"] = "0";
                    dwReturn["ABPRTSTK"] = "0";
                    dwReturn["ABPROHWDAT"] = "0";
                    dwReturn["ABPKDDAT"] = "0";
                    dwReturn["ABPWVDAT"] = "0";
                    dwReturn["ABPLIEFDAT"] = "0";
                    dwReturn["ABPLRUECK"] = "0";
                    dwReturn["ABPLRDATE"] = "0";
                    dwReturn["ABPDLR"] = "  ";
                    dwReturn["ABPVTRUECK"] = "0";
                    dwReturn["ABPVTDATE"] = "0";
                    dwReturn["ABPUNKLAR"] = " ";
                    dwReturn["ABPVERSDAT"] = "0";
                    dwReturn["ABPFREIDAT"] = "0";
                    dwReturn["ABPSTARTDAT"] = "0";
                    dwReturn["ABPENDDAT"] = "0";
                    dwReturn["ABPSTARTDATA"] = "0";
                    dwReturn["ABPENDDATA"] = "0";
                    dwReturn["ABPLTERMAK"] = "0";
                    dwReturn["ABPBESTDAT"] = "0";
                    dwReturn["ABPANRKR"] = "  ";
                    dwReturn["ABPALFDNR"] = "000000";
                    dwReturn["ABPAFOLGEV"] = "000";
                    dwReturn["ABPAFOLGEB"] = "000";
                    dwReturn["ABPANRKR2"] = "  ";
                    dwReturn["ABPALFDNR2"] = "000000";
                    dwReturn["ABPAFOLGEV2"] = "0";
                    dwReturn["ABPAFOLGEB2"] = "0";
                    dwReturn["ABPANRKR3"] = "  ";
                    dwReturn["ABPALFDNR3"] = "000000";
                    dwReturn["ABPAFOLGEV3"] = "0";
                    dwReturn["ABPAFOLGEB3"] = "0";
                    dwReturn["ABPANRKR4"] = "  ";
                    dwReturn["ABPALFDNR4"] = "000000";
                    dwReturn["ABPAFOLGEV4"] = "0";
                    dwReturn["ABPAFOLGEB4"] = "0";
                    dwReturn["ABPVERSAEND"] = " ";
                    dwReturn["ABPVERSZL"] = "000";
                    dwReturn["ABPTLFREIG"] = "000";
                    dwReturn["ABPTLFMG"] = "0";
                    dwReturn["ABPFREIGKZ"] = " ";
                    dwReturn["ABPLMAFOLGE"] = "000";
                    dwReturn["ABPENDAUFM"] = "  ";
                    dwReturn["ABPZAUFM"] = "  ";
                    dwReturn["ABPLIEFNR"] = "        ";
                    dwReturn["ABPGESSTA"] = "TE";
                    dwReturn["ABPKDSTA"] = "10";
                    dwReturn["ABPWSSTA"] = "22";
                    dwReturn["ABPAPSTA"] = "30";
                    dwReturn["ABPRZSTA"] = "40";
                    dwReturn["ABPWPSTA"] = "50";
                    dwReturn["ABPWBSTA"] = "60";
                    dwReturn["ABPABSTA"] = "70";
                    dwReturn["ABPERLKZ"] = " ";
                    dwReturn["ABPERLDAT"] = "0";
                    dwReturn["ABPBEWKZ"] = " ";
                    dwReturn["ABPDRKZ1"] = " ";
                    dwReturn["ABPDRKZ2"] = " ";
                    dwReturn["ABPDRKZ3"] = " ";
                    dwReturn["ABPDRKZ4"] = " ";
                    dwReturn["ABPDRKZ5"] = " ";
                    dwReturn["ABPDRKZ6"] = " ";
                    dwReturn["ABPDRKZ7"] = " ";
                    dwReturn["ABPDRKZ8"] = " ";
                    dwReturn["ABPDRKZ9"] = " ";
                    dwReturn["ABPDRKZ10"] = " ";
                    dwReturn["ABPDR1USER"] = "        ";
                    dwReturn["ABPDR1DAT"] = "00000000";
                    dwReturn["ABPDR8USER"] = "        ";
                    dwReturn["ABPDR8DAT"] = "00000000";
                    dwReturn["ABPRETOURZL"] = "0";
                    dwReturn["ABPRPCOUNTAK"] = "0";
                    dwReturn["ABPURAUFKRS"] = "  ";
                    dwReturn["ABPURAUFLFD"] = "000000";
                    dwReturn["ABPURAUFPOS"] = "000";
                    dwReturn["ABPASAUFKRS"] = "  ";
                    dwReturn["ABPASAUFLFD"] = "000000";
                    dwReturn["ABPASAUFPOS"] = "000";
                    dwReturn["ABPREAFOLGE"] = "000";
                    dwReturn["ABPRWKRS"] = "  ";
                    dwReturn["ABPRWLFD"] = "000000";
                    dwReturn["ABPSTKNRKR"] = "  ";
                    dwReturn["ABPSERIE"] = "  ";
                    dwReturn["ABPAGBKZ"] = " ";
                    dwReturn["ABPWAART"] = "   ";
                    dwReturn["ABPANZSTK"] = "0";
                    dwReturn["ABPZUGETGES"] = "0";
                    dwReturn["ABPSTKKZ"] = " ";
                    dwReturn["ABPSTKLG"] = "0";
                    dwReturn["ABPANZSTKR"] = "0";
                    dwReturn["ABPABZKZ"] = " ";
                    dwReturn["ABPBDEKZ"] = "N";
                    dwReturn["ABPSUBSYS"] = "  ";
                    dwReturn["ABPDATBDE"] = "0";
                    dwReturn["ABPUHRBDE"] = "0";
                    dwReturn["ABPDISPOKZ"] = " ";
                    dwReturn["ABPSCHLICHTE"] = "     ";
                    dwReturn["ABPZZUSATZ"] = "          ";
                    dwReturn["ABPZZUSKZ"] = " ";
                    dwReturn["ABPSZUSTAND"] = "    ";
                    dwReturn["ABPIZUSTAND"] = "    ";
                    dwReturn["ABPSZUSATZKZ1"] = "F";
                    dwReturn["ABPSZUSATZKZ2"] = " ";
                    dwReturn["ABPSZUSATZKZ3"] = " ";
                    dwReturn["ABPSZUSATZKZ4"] = " ";
                    dwReturn["ABPWERKE"] = " ";
                    dwReturn["ABPLBMUSTR"] = "   ";
                    dwReturn["ABPFBMUSTR"] = "   ";
                    dwReturn["ABPREAUFKRS"] = "  ";
                    dwReturn["ABPREAUFLFD"] = "000000";
                    dwReturn["ABPREAUFPOS"] = "000";
                    dwReturn["ABPLTVORL"] = "               ";
                    dwReturn["ABPFDZ"] = "0";
                    dwReturn["ABPARTEX"] = "                                                            ";
                    dwReturn["ABPLETEILNR"] = "0";
                    dwReturn["ABPANSNR"] = "0";
                    dwReturn["ABPUPOS"] = "0";
                    dwReturn["ABPTP"] = "0";
                    dwReturn["ABPLBDENR"] = "0";
                    dwReturn["ABPTMCOUNT"] = "1";
                    dwReturn["ABPTMCOUNTAK"] = "0";
                    dwReturn["ABPKDPARTIE"] = "          ";
                    dwReturn["ABPBAHNKZ"] = " ";
                    dwReturn["ABPGAENGE"] = "0";
                    dwReturn["ABPZWTWAHL"] = "0";
                    dwReturn["ABPDIVWLFM"] = "0";
                    dwReturn["ABPDIVWKG"] = "0";
                    dwReturn["ABPDISPOST"] = " ";
                    dwReturn["ABPKETTAUFT"] = " ";
                    dwReturn["ABPKETTGARN"] = " ";
                    dwReturn["ABPSPGRD"] = "  ";
                    dwReturn["ABPSPBENID"] = "        ";
                    dwReturn["ABPSPDAT"] = "0";
                    dwReturn["ABPLMDAT"] = "0";
                    dwReturn["ABPLMZT"] = "0";
                    dwReturn["ABPWPLKZ"] = " ";
                    dwReturn["ABPKKUNDNR"] = "        ";
                    dwReturn["ABPKLAND"] = "   ";
                    dwReturn["ABPKVB"] = "   ";
                    dwReturn["ABPKVG"] = "   ";
                    dwReturn["ABPKPROGRP"] = "   ";
                    dwReturn["ABPKARTGRP"] = "   ";
                    dwReturn["ABPKVKZ"] = " ";
                    dwReturn["ABPLAEVON"] = "0";
                    dwReturn["ABPLAEBIS"] = "0";
                    dwReturn["ABPSTDLAE"] = "0";
                    dwReturn["ABPMGV"] = "0";
                    dwReturn["ABPMGB"] = "0";
                    dwReturn["ABPPAS"] = "0";
                    dwReturn["ABPPAI"] = "0";
                    dwReturn["ABPAZUTEIL"] = " ";
                    dwReturn["ABPZUTART"] = "1";
                    dwReturn["ABPFA"] = "1";
                    dwReturn["ABPGA"] = "100";
                    dwReturn["ABPQA"] = "100";
                    dwReturn["ABPMAFZST"] = "0";
                    dwReturn["ABPQPKTH"] = "0";
                    dwReturn["ABPQPKTLH"] = "0";
                    dwReturn["ABPSTKNEUTR"] = " ";
                    dwReturn["ABPREGEL"] = "00000000";
                    dwReturn["ABPSTAFFNR"] = "00";
                    dwReturn["ABPWERKEKZ"] = " ";
                    dwReturn["ABPWKSTKRS"] = "  ";
                    dwReturn["ABPWKST"] = "0000";
                    dwReturn["ABPWKART"] = "000000";
                    dwReturn["ABPWMNRKRS"] = "  ";
                    dwReturn["ABPWMLFDNR"] = "0000";
                    dwReturn["ABPWMPOS"] = "00";
                    dwReturn["ABPWMODNR"] = "000";
                    dwReturn["ABPWINTV"] = "00";
                    dwReturn["ABPWKENN"] = "  ";
                    dwReturn["ABPWSTOERGRD"] = "               ";
                    dwReturn["ABPWAKSTKRS"] = "  ";
                    dwReturn["ABPWAKST"] = "0000";
                    dwReturn["ABPWPERSNR"] = "        ";
                    dwReturn["ABPWDATV"] = "0";
                    dwReturn["ABPWZEITV"] = "0";
                    dwReturn["ABPWDATB"] = "0";
                    dwReturn["ABPWZEITB"] = "0";
                    dwReturn["ABPWSTA"] = "  ";
                    dwReturn["ABPFKALK"] = " ";
                    dwReturn["ABPLIEFDATN"] = "0";
                    dwReturn["ABPLAEAENDE"] = "0";
                    dwReturn["ABPLAEAENDA"] = "0";
                    dwReturn["ABPDMWAKZ"] = " ";
                    dwReturn["ABPDMART"] = "                    ";
                    dwReturn["ABPDMVAR"] = "  ";
                    dwReturn["ABPDMDESS"] = "          ";
                    dwReturn["ABPDMCOLORIT"] = "          ";
                    dwReturn["ABPDMFARBE"] = "          ";
                    dwReturn["ABPDMBESCHICH"] = "          ";
                    dwReturn["ABPDKART"] = "                    ";
                    dwReturn["ABPDKVAR"] = "  ";
                    dwReturn["ABPDKFARBE"] = "  ";
                    dwReturn["ABPDKBRUT"] = "0";
                    dwReturn["ABPGENEHMKZ"] = " ";
                    dwReturn["ABPSTUEART"] = "   ";
                    dwReturn["ABPCOMPKZ"] = " ";
                    dwReturn["ABPPOSTYP"] = "FI ";
                    dwReturn["ABPORDER"] = "    ";
                    dwReturn["ABPNPGRUND"] = "   ";
                    dwReturn["ABPREWEIL"] = "  ";
                    dwReturn["ABPFSCHL"] = "   ";
                    dwReturn["ABPKSTKRS"] = "  ";
                    dwReturn["ABPKST"] = "0000";
                    dwReturn["ABPMURW"] = " ";
                    dwReturn["ABPMUVB"] = " ";
                    dwReturn["ABPMUFW"] = " ";
                    dwReturn["ABPMUPF"] = " ";
                    dwReturn["ABPERSTFB"] = " ";
                    dwReturn["ABPERSTDR"] = " ";
                    dwReturn["ABPERSTBE"] = " ";
                    dwReturn["ABPMUCTOD"] = " ";
                    dwReturn["ABPKDFREI"] = " ";
                    dwReturn["ABPREZFB"] = " ";
                    dwReturn["ABPREZDR"] = " ";
                    dwReturn["ABPPRUEF"] = " ";
                    dwReturn["ABPNIXWE"] = " ";
                    dwReturn["ABPCOLSTA"] = " ";
                    dwReturn["ABPFBSTA"] = " ";
                    dwReturn["ABPBAHNNR"] = "0";
                    dwReturn["ABPBAHNBRT"] = "0";
                    dwReturn["ABPFLBEDECK"] = "0";
                    dwReturn["ABPDATABDE"] = "00000000";
                    dwReturn["ABPUHRABDE"] = "000000";
                    dwReturn["ABPLOEKZ"] = " ";
                    dwReturn["ABPTERMDAT"] = "0";
                    dwReturn["ABPPRFI"] = " ";
                    dwReturn["ABPPRVAR"] = " ";
                    dwReturn["ABPPRBE"] = " ";
                    dwReturn["ABPPRZU"] = " ";
                    dwReturn["ABPPRDESS"] = " ";
                    dwReturn["ABPZUSATZ1"] = " ";
                    dwReturn["ABPZUSATZ2"] = " ";
                    dwReturn["ABPZUSATZ3"] = " ";
                    dwReturn["ABPZUSATZ4"] = " ";
                    dwReturn["ABPZUSATZ5"] = " ";
                    dwReturn["ABPFLAG1"] = "0";
                    dwReturn["ABPFLAG2"] = "0";
                    dwReturn["ABPFLAG3"] = "0";
                    dwReturn["ABPFLAG4"] = "0";
                    dwReturn["ABPFLAG5"] = "0";
                    dwReturn["ABPORGMG"] = "0";
                    dwReturn["ABPDIFFMG"] = "0";
                    dwReturn["ABPRARTKZ"] = " ";
                    dwReturn["ABPSTARTDATN"] = "0";
                    dwReturn["ABPAESTAT"] = " ";
                    dwReturn["ABPLBAUFKRS"] = "  ";
                    dwReturn["ABPLBAUFLFD"] = "000000";
                    dwReturn["ABPLBAUFPOS"] = "000";
                    dwReturn["ABPVEAUFTRAG"] = "               ";
                    dwReturn["ABPREGBLOG"] = "0";
                    dwReturn["ABPREGBDATE"] = "0";
                    dwReturn["ABPPROJNR"] = "                        ";
                    dwReturn["ABPSHADE"] = "   ";
                    dwReturn["ABPSHADEUNCL"] = " ";
                    dwReturn["ABPLICHTART"] = "     ";
                    dwReturn["ABPLINE"] = "   ";
                    dwReturn["ABPFILLER1"] = "                                                                                                      ";
                    dwReturn["ABPAENDZL"] = "0";
                    dwReturn["ABPAENDBEN"] = "        ";
                    dwReturn["ABPAENDDAT"] = "0";
                    dwReturn["ABPNEUBEN"] = "        ";
                    dwReturn["ABPNEUDAT"] = "0";
                    #endregion
                    break;
            }
            INTEXDBC.MapData(true, ref dwReturn, dwInput);
        }

        public DataRow Convert2ABPOS(DataRow dwInput, string ITXDBVERSION, bool IsConvert = false)
        {
            DataSet SResult = new DataSet();
            SResult = QueryABPOS(dwInput, 0);
            DataRow dwReturn = null;
            if (SResult.Tables[0].Rows.Count > 0)
            {
                dwReturn = SResult.Tables[0].Rows[0];
            }
            else
            {
                dwReturn = SResult.Tables[0].NewRow();
            }
            switch (ITXDBVERSION)
            {
                case "YGR":
                    #region====YGR======
                    dwReturn["ABPMANDANT"] = app.Mandant;
                    dwReturn["ABPAUFKRS"] = "  ";
                    dwReturn["ABPAUFLFD"] = "000000";
                    dwReturn["ABPAUFPOS"] = "   ";
                    dwReturn["ABPVFAUFKRS"] = "  ";
                    dwReturn["ABPVFAUFLFD"] = "000000";
                    dwReturn["ABPVFAUFPOS"] = "000";
                    dwReturn["ABPAUFART"] = "  ";
                    dwReturn["ABPAUFST"] = " ";
                    dwReturn["ABPAUFSTV"] = "0";
                    dwReturn["ABPAUFSTB"] = "0";
                    dwReturn["ABPAUTO"] = " ";
                    dwReturn["ABPPRIO"] = "00";
                    dwReturn["ABPTLVF"] = "   ";
                    dwReturn["ABPDIVARTKZ"] = "N";
                    dwReturn["ABPKUNDNR"] = "00000000";
                    dwReturn["ABPWERK"] = "   ";
                    dwReturn["ABPABT"] = "   ";
                    dwReturn["ABPWAKZ"] = "G";
                    dwReturn["ABPART"] = "                    ";
                    dwReturn["ABPVAR"] = "   ";
                    dwReturn["ABPFARBE"] = "    1     ";
                    dwReturn["ABPDESS"] = "          ";
                    dwReturn["ABPCOLORIT"] = "          ";
                    dwReturn["ABPBESCHICH"] = "          ";
                    dwReturn["ABPGROE"] = "       ";
                    dwReturn["ABPAUFM"] = "  ";
                    dwReturn["ABPVERP"] = "   ";
                    dwReturn["ABPANZVP"] = "0";
                    dwReturn["ABPFWARTGRA"] = "     ";
                    dwReturn["ABPFWARTGRP"] = "  ";
                    dwReturn["ABPZLO"] = "01";
                    dwReturn["ABPZLB"] = "ZT";
                    dwReturn["ABPBLO"] = "  ";
                    dwReturn["ABPSME"] = "5";
                    dwReturn["ABPSOLLMENGE1"] = "0";
                    dwReturn["ABPSOLLMENGE2"] = "0";
                    dwReturn["ABPSOLLMENGE3"] = "0";
                    dwReturn["ABPSOLLMENGE4"] = "0";
                    dwReturn["ABPSOLLMENGE5"] = "0";
                    dwReturn["ABPSOLLMENGE6"] = "0";
                    dwReturn["ABPSOLLMENGE7"] = "0";
                    dwReturn["ABPSOLLMENGE8"] = "0";
                    dwReturn["ABPRESMGE"] = "0";
                    dwReturn["ABPRESKG"] = "0";
                    dwReturn["ABPRESSTK"] = "0";
                    dwReturn["ABPZUGET"] = "0";
                    dwReturn["ABPZUGKG"] = "0";
                    dwReturn["ABPZUGSTK"] = "0";
                    dwReturn["ABPDILFM"] = "0";
                    dwReturn["ABPDIKG"] = "0";
                    dwReturn["ABPDISTK"] = "0";
                    dwReturn["ABPZTLGKOMP"] = " ";
                    dwReturn["ABPSMGKZZU"] = " ";
                    dwReturn["ABPVLLFM"] = "0";
                    dwReturn["ABPVLKG"] = "0";
                    dwReturn["ABPVLSTK"] = "0";
                    dwReturn["ABPEALFM"] = "0";
                    dwReturn["ABPEAKG"] = "0";
                    dwReturn["ABPEASTK"] = "0";
                    dwReturn["ABPEBLFM"] = "0";
                    dwReturn["ABPEBKG"] = "0";
                    dwReturn["ABPEBSTK"] = "0";
                    dwReturn["ABPABLFM"] = "0";
                    dwReturn["ABPABKG"] = "0";
                    dwReturn["ABPABSTK"] = "0";
                    dwReturn["ABPVSLFM"] = "0";
                    dwReturn["ABPVSKG"] = "0";
                    dwReturn["ABPVSSTK"] = "0";
                    dwReturn["ABPRTLFM"] = "0";
                    dwReturn["ABPRTKG"] = "0";
                    dwReturn["ABPRTSTK"] = "0";
                    dwReturn["ABPROHWDAT"] = "0";
                    dwReturn["ABPKDDAT"] = "0";
                    dwReturn["ABPWVDAT"] = "0";
                    dwReturn["ABPLIEFDAT"] = "0";
                    dwReturn["ABPLRUECK"] = "0";
                    dwReturn["ABPLRDATE"] = "0";
                    dwReturn["ABPDLR"] = "  ";
                    dwReturn["ABPVTRUECK"] = "0";
                    dwReturn["ABPVTDATE"] = "0";
                    dwReturn["ABPUNKLAR"] = " ";
                    dwReturn["ABPVERSDAT"] = "0";
                    dwReturn["ABPFREIDAT"] = "0";
                    dwReturn["ABPSTARTDAT"] = "0";
                    dwReturn["ABPENDDAT"] = "0";
                    dwReturn["ABPSTARTDATA"] = "0";
                    dwReturn["ABPENDDATA"] = "0";
                    dwReturn["ABPLTERMAK"] = "0";
                    dwReturn["ABPBESTDAT"] = "0";
                    dwReturn["ABPANRKR"] = "  ";
                    dwReturn["ABPALFDNR"] = "000000";
                    dwReturn["ABPAFOLGEV"] = "000";
                    dwReturn["ABPAFOLGEB"] = "000";
                    dwReturn["ABPANRKR2"] = "  ";
                    dwReturn["ABPALFDNR2"] = "000000";
                    dwReturn["ABPAFOLGEV2"] = "0";
                    dwReturn["ABPAFOLGEB2"] = "0";
                    dwReturn["ABPANRKR3"] = "  ";
                    dwReturn["ABPALFDNR3"] = "000000";
                    dwReturn["ABPAFOLGEV3"] = "0";
                    dwReturn["ABPAFOLGEB3"] = "0";
                    dwReturn["ABPANRKR4"] = "  ";
                    dwReturn["ABPALFDNR4"] = "000000";
                    dwReturn["ABPAFOLGEV4"] = "0";
                    dwReturn["ABPAFOLGEB4"] = "0";
                    dwReturn["ABPVERSAEND"] = " ";
                    dwReturn["ABPVERSZL"] = "000";
                    dwReturn["ABPTLFREIG"] = "000";
                    dwReturn["ABPTLFMG"] = "0";
                    dwReturn["ABPFREIGKZ"] = " ";
                    dwReturn["ABPLMAFOLGE"] = "000";
                    dwReturn["ABPENDAUFM"] = "  ";
                    dwReturn["ABPZAUFM"] = "  ";
                    dwReturn["ABPLIEFNR"] = "        ";
                    dwReturn["ABPGESSTA"] = "TE";
                    dwReturn["ABPKDSTA"] = "10";
                    dwReturn["ABPWSSTA"] = "20";
                    dwReturn["ABPAPSTA"] = "30";
                    dwReturn["ABPRZSTA"] = "40";
                    dwReturn["ABPWPSTA"] = "50";
                    dwReturn["ABPWBSTA"] = "68";
                    dwReturn["ABPABSTA"] = "70";
                    dwReturn["ABPERLKZ"] = " ";
                    dwReturn["ABPERLDAT"] = "0";
                    dwReturn["ABPBEWKZ"] = " ";
                    dwReturn["ABPDRKZ1"] = " ";
                    dwReturn["ABPDRKZ2"] = " ";
                    dwReturn["ABPDRKZ3"] = " ";
                    dwReturn["ABPDRKZ4"] = " ";
                    dwReturn["ABPDRKZ5"] = " ";
                    dwReturn["ABPDRKZ6"] = " ";
                    dwReturn["ABPDRKZ7"] = " ";
                    dwReturn["ABPDRKZ8"] = " ";
                    dwReturn["ABPDRKZ9"] = " ";
                    dwReturn["ABPDRKZ10"] = " ";
                    dwReturn["ABPDR1USER"] = "        ";
                    dwReturn["ABPDR1DAT"] = "00000000";
                    dwReturn["ABPDR8USER"] = "        ";
                    dwReturn["ABPDR8DAT"] = "00000000";
                    dwReturn["ABPRETOURZL"] = "0";
                    dwReturn["ABPRPCOUNTAK"] = "0";
                    dwReturn["ABPURAUFKRS"] = "  ";
                    dwReturn["ABPURAUFLFD"] = "000000";
                    dwReturn["ABPURAUFPOS"] = "000";
                    dwReturn["ABPASAUFKRS"] = "  ";
                    dwReturn["ABPASAUFLFD"] = "000000";
                    dwReturn["ABPASAUFPOS"] = "000";
                    dwReturn["ABPREAFOLGE"] = "000";
                    dwReturn["ABPRWKRS"] = "  ";
                    dwReturn["ABPRWLFD"] = "000000";
                    dwReturn["ABPSTKNRKR"] = "  ";
                    dwReturn["ABPSERIE"] = "  ";
                    dwReturn["ABPAGBKZ"] = " ";
                    dwReturn["ABPWAART"] = "   ";
                    dwReturn["ABPANZSTK"] = "0";
                    dwReturn["ABPZUGETGES"] = "0";
                    dwReturn["ABPSTKKZ"] = " ";
                    dwReturn["ABPSTKLG"] = "0";
                    dwReturn["ABPANZSTKR"] = "0";
                    dwReturn["ABPABZKZ"] = " ";
                    dwReturn["ABPBDEKZ"] = "N";
                    dwReturn["ABPSUBSYS"] = "  ";
                    dwReturn["ABPDATBDE"] = "0";
                    dwReturn["ABPUHRBDE"] = "0";
                    dwReturn["ABPDISPOKZ"] = " ";
                    dwReturn["ABPSCHLICHTE"] = "     ";
                    dwReturn["ABPZZUSATZ"] = "          ";
                    dwReturn["ABPZZUSKZ"] = " ";
                    dwReturn["ABPSZUSTAND"] = "    ";
                    dwReturn["ABPIZUSTAND"] = "    ";
                    dwReturn["ABPSZUSATZKZ1"] = " ";
                    dwReturn["ABPSZUSATZKZ2"] = " ";
                    dwReturn["ABPSZUSATZKZ3"] = " ";
                    dwReturn["ABPSZUSATZKZ4"] = " ";
                    dwReturn["ABPWERKE"] = " ";
                    dwReturn["ABPLBMUSTR"] = "   ";
                    dwReturn["ABPFBMUSTR"] = "   ";
                    dwReturn["ABPREAUFKRS"] = "  ";
                    dwReturn["ABPREAUFLFD"] = "000000";
                    dwReturn["ABPREAUFPOS"] = "000";
                    dwReturn["ABPLTVORL"] = "               ";
                    dwReturn["ABPFDZ"] = "0";
                    dwReturn["ABPARTEX"] = "                                                            ";
                    dwReturn["ABPLETEILNR"] = "0";
                    dwReturn["ABPANSNR"] = "0";
                    dwReturn["ABPUPOS"] = "0";
                    dwReturn["ABPTP"] = "0";
                    dwReturn["ABPLBDENR"] = "0";
                    dwReturn["ABPTMCOUNT"] = "1";
                    dwReturn["ABPTMCOUNTAK"] = "0";
                    dwReturn["ABPKDPARTIE"] = "          ";
                    dwReturn["ABPBAHNKZ"] = " ";
                    dwReturn["ABPGAENGE"] = "0";
                    dwReturn["ABPZWTWAHL"] = "0";
                    dwReturn["ABPDIVWLFM"] = "0";
                    dwReturn["ABPDIVWKG"] = "0";
                    dwReturn["ABPDISPOST"] = " ";
                    dwReturn["ABPKETTAUFT"] = " ";
                    dwReturn["ABPKETTGARN"] = " ";
                    dwReturn["ABPSPGRD"] = "  ";
                    dwReturn["ABPSPBENID"] = "        ";
                    dwReturn["ABPSPDAT"] = "0";
                    dwReturn["ABPLMDAT"] = "0";
                    dwReturn["ABPLMZT"] = "0";
                    dwReturn["ABPWPLKZ"] = " ";
                    dwReturn["ABPKKUNDNR"] = "        ";
                    dwReturn["ABPKLAND"] = "   ";
                    dwReturn["ABPKVB"] = "   ";
                    dwReturn["ABPKVG"] = "   ";
                    dwReturn["ABPKPROGRP"] = "   ";
                    dwReturn["ABPKARTGRP"] = "   ";
                    dwReturn["ABPKVKZ"] = " ";
                    dwReturn["ABPLAEVON"] = "0";
                    dwReturn["ABPLAEBIS"] = "0";
                    dwReturn["ABPSTDLAE"] = "0";
                    dwReturn["ABPMGV"] = "0";
                    dwReturn["ABPMGB"] = "0";
                    dwReturn["ABPPAS"] = "0";
                    dwReturn["ABPPAI"] = "0";
                    dwReturn["ABPAZUTEIL"] = " ";
                    dwReturn["ABPZUTART"] = " ";
                    dwReturn["ABPFA"] = "0";
                    dwReturn["ABPGA"] = "0";
                    dwReturn["ABPQA"] = "0";
                    dwReturn["ABPMAFZST"] = "0";
                    dwReturn["ABPQPKTH"] = "0";
                    dwReturn["ABPQPKTLH"] = "0";
                    dwReturn["ABPSTKNEUTR"] = " ";
                    dwReturn["ABPREGEL"] = "00000000";
                    dwReturn["ABPSTAFFNR"] = "00";
                    dwReturn["ABPWERKEKZ"] = " ";
                    dwReturn["ABPWKSTKRS"] = "  ";
                    dwReturn["ABPWKST"] = "0000";
                    dwReturn["ABPWKART"] = "000000";
                    dwReturn["ABPWMNRKRS"] = "  ";
                    dwReturn["ABPWMLFDNR"] = "0000";
                    dwReturn["ABPWMPOS"] = "00";
                    dwReturn["ABPWMODNR"] = "000";
                    dwReturn["ABPWINTV"] = "00";
                    dwReturn["ABPWKENN"] = "  ";
                    dwReturn["ABPWSTOERGRD"] = "               ";
                    dwReturn["ABPWAKSTKRS"] = "  ";
                    dwReturn["ABPWAKST"] = "0000";
                    dwReturn["ABPWPERSNR"] = "        ";
                    dwReturn["ABPWDATV"] = "0";
                    dwReturn["ABPWZEITV"] = "0";
                    dwReturn["ABPWDATB"] = "0";
                    dwReturn["ABPWZEITB"] = "0";
                    dwReturn["ABPWSTA"] = "  ";
                    dwReturn["ABPFKALK"] = " ";
                    dwReturn["ABPLIEFDATN"] = "0";
                    dwReturn["ABPLAEAENDE"] = "0";
                    dwReturn["ABPLAEAENDA"] = "0";
                    dwReturn["ABPDMWAKZ"] = " ";
                    dwReturn["ABPDMART"] = "                    ";
                    dwReturn["ABPDMVAR"] = "  ";
                    dwReturn["ABPDMDESS"] = "          ";
                    dwReturn["ABPDMCOLORIT"] = "          ";
                    dwReturn["ABPDMFARBE"] = "          ";
                    dwReturn["ABPDMBESCHICH"] = "          ";
                    dwReturn["ABPDKART"] = "                    ";
                    dwReturn["ABPDKVAR"] = "  ";
                    dwReturn["ABPDKFARBE"] = "  ";
                    dwReturn["ABPDKBRUT"] = "0";
                    dwReturn["ABPGENEHMKZ"] = " ";
                    dwReturn["ABPSTUEART"] = "   ";
                    dwReturn["ABPCOMPKZ"] = " ";
                    dwReturn["ABPPOSTYP"] = "   ";
                    dwReturn["ABPORDER"] = "    ";
                    dwReturn["ABPNPGRUND"] = "   ";
                    dwReturn["ABPREWEIL"] = "  ";
                    dwReturn["ABPFSCHL"] = "   ";
                    dwReturn["ABPKSTKRS"] = "  ";
                    dwReturn["ABPKST"] = "0000";
                    dwReturn["ABPMURW"] = " ";
                    dwReturn["ABPMUVB"] = " ";
                    dwReturn["ABPMUFW"] = " ";
                    dwReturn["ABPMUPF"] = " ";
                    dwReturn["ABPERSTFB"] = " ";
                    dwReturn["ABPERSTDR"] = " ";
                    dwReturn["ABPERSTBE"] = " ";
                    dwReturn["ABPMUCTOD"] = " ";
                    dwReturn["ABPKDFREI"] = " ";
                    dwReturn["ABPREZFB"] = " ";
                    dwReturn["ABPREZDR"] = " ";
                    dwReturn["ABPPRUEF"] = " ";
                    dwReturn["ABPNIXWE"] = " ";
                    dwReturn["ABPCOLSTA"] = " ";
                    dwReturn["ABPFBSTA"] = " ";
                    dwReturn["ABPBAHNNR"] = "0";
                    dwReturn["ABPBAHNBRT"] = "0";
                    dwReturn["ABPFLBEDECK"] = "0";
                    dwReturn["ABPDATABDE"] = "00000000";
                    dwReturn["ABPUHRABDE"] = "000000";
                    dwReturn["ABPLOEKZ"] = " ";
                    dwReturn["ABPTERMDAT"] = "0";
                    dwReturn["ABPPRFI"] = " ";
                    dwReturn["ABPPRVAR"] = " ";
                    dwReturn["ABPPRBE"] = " ";
                    dwReturn["ABPPRZU"] = " ";
                    dwReturn["ABPPRDESS"] = " ";
                    dwReturn["ABPZUSATZ1"] = " ";
                    dwReturn["ABPZUSATZ2"] = " ";
                    dwReturn["ABPZUSATZ3"] = " ";
                    dwReturn["ABPZUSATZ4"] = " ";
                    dwReturn["ABPZUSATZ5"] = " ";
                    dwReturn["ABPFLAG1"] = "0";
                    dwReturn["ABPFLAG2"] = "0";
                    dwReturn["ABPFLAG3"] = "0";
                    dwReturn["ABPFLAG4"] = "0";
                    dwReturn["ABPFLAG5"] = "0";
                    dwReturn["ABPORGMG"] = "0";
                    dwReturn["ABPDIFFMG"] = "0";
                    dwReturn["ABPRARTKZ"] = " ";
                    dwReturn["ABPSTARTDATN"] = "0";
                    dwReturn["ABPAESTAT"] = " ";
                    dwReturn["ABPLBAUFKRS"] = "  ";
                    dwReturn["ABPLBAUFLFD"] = "000000";
                    dwReturn["ABPLBAUFPOS"] = "000";
                    dwReturn["ABPVEAUFTRAG"] = "               ";
                    dwReturn["ABPREGBLOG"] = "0";
                    dwReturn["ABPREGBDATE"] = "0";
                    dwReturn["ABPPROJNR"] = "                        ";
                    dwReturn["ABPSHADE"] = "   ";
                    dwReturn["ABPSHADEUNCL"] = " ";
                    dwReturn["ABPLICHTART"] = "     ";
                    dwReturn["ABPLINE"] = "   ";
                    dwReturn["ABPFILLER1"] = "                                                                                                      ";
                    dwReturn["ABPAENDZL"] = "1";
                    dwReturn["ABPAENDBEN"] = "        ";
                    dwReturn["ABPAENDDAT"] = "0";
                    dwReturn["ABPNEUBEN"] = "        ";
                    dwReturn["ABPNEUDAT"] = "0";
                    #endregion
                    break;
                case "JLT":
                    #region====JLT=======
                    dwReturn["ABPMANDANT"] = app.Mandant;
                    dwReturn["ABPAUFKRS"] = "  ";
                    dwReturn["ABPAUFLFD"] = "000000";
                    dwReturn["ABPAUFPOS"] = "000";
                    dwReturn["ABPVFAUFKRS"] = "  ";
                    dwReturn["ABPVFAUFLFD"] = "000000";
                    dwReturn["ABPVFAUFPOS"] = "000";
                    dwReturn["ABPAUFART"] = "  ";
                    dwReturn["ABPAUFST"] = " ";
                    dwReturn["ABPAUFSTV"] = "0";
                    dwReturn["ABPAUFSTB"] = "0";
                    dwReturn["ABPAUTO"] = " ";
                    dwReturn["ABPPRIO"] = "00";
                    dwReturn["ABPTLVF"] = "   ";
                    dwReturn["ABPDIVARTKZ"] = "N";
                    dwReturn["ABPKUNDNR"] = "00000000";
                    dwReturn["ABPWERK"] = "   ";
                    dwReturn["ABPABT"] = "   ";
                    dwReturn["ABPWAKZ"] = "G";
                    dwReturn["ABPART"] = "                    ";
                    dwReturn["ABPVAR"] = "   ";
                    dwReturn["ABPFARBE"] = "          ";
                    dwReturn["ABPDESS"] = "          ";
                    dwReturn["ABPCOLORIT"] = "          ";
                    dwReturn["ABPBESCHICH"] = "          ";
                    dwReturn["ABPGROE"] = "       ";
                    dwReturn["ABPAUFM"] = "  ";
                    dwReturn["ABPVERP"] = "   ";
                    dwReturn["ABPANZVP"] = "0";
                    dwReturn["ABPFWARTGRA"] = "     ";
                    dwReturn["ABPFWARTGRP"] = "  ";
                    dwReturn["ABPZLO"] = "01";
                    dwReturn["ABPZLB"] = "ZL";
                    dwReturn["ABPBLO"] = "  ";
                    dwReturn["ABPSME"] = "2";
                    dwReturn["ABPSOLLMENGE1"] = "0";
                    dwReturn["ABPSOLLMENGE2"] = "0";
                    dwReturn["ABPSOLLMENGE3"] = "0";
                    dwReturn["ABPSOLLMENGE4"] = "0";
                    dwReturn["ABPSOLLMENGE5"] = "0";
                    dwReturn["ABPSOLLMENGE6"] = "0";
                    dwReturn["ABPSOLLMENGE7"] = "0";
                    dwReturn["ABPSOLLMENGE8"] = "0";
                    dwReturn["ABPRESMGE"] = "0";
                    dwReturn["ABPRESKG"] = "0";
                    dwReturn["ABPRESSTK"] = "0";
                    dwReturn["ABPZUGET"] = "0";
                    dwReturn["ABPZUGKG"] = "0";
                    dwReturn["ABPZUGSTK"] = "0";
                    dwReturn["ABPDILFM"] = "0";
                    dwReturn["ABPDIKG"] = "0";
                    dwReturn["ABPDISTK"] = "0";
                    dwReturn["ABPZTLGKOMP"] = " ";
                    dwReturn["ABPSMGKZZU"] = " ";
                    dwReturn["ABPVLLFM"] = "0";
                    dwReturn["ABPVLKG"] = "0";
                    dwReturn["ABPVLSTK"] = "0";
                    dwReturn["ABPEALFM"] = "0";
                    dwReturn["ABPEAKG"] = "0";
                    dwReturn["ABPEASTK"] = "0";
                    dwReturn["ABPEBLFM"] = "0";
                    dwReturn["ABPEBKG"] = "0";
                    dwReturn["ABPEBSTK"] = "0";
                    dwReturn["ABPABLFM"] = "0";
                    dwReturn["ABPABKG"] = "0";
                    dwReturn["ABPABSTK"] = "0";
                    dwReturn["ABPVSLFM"] = "0";
                    dwReturn["ABPVSKG"] = "0";
                    dwReturn["ABPVSSTK"] = "0";
                    dwReturn["ABPRTLFM"] = "0";
                    dwReturn["ABPRTKG"] = "0";
                    dwReturn["ABPRTSTK"] = "0";
                    dwReturn["ABPROHWDAT"] = "0";
                    dwReturn["ABPKDDAT"] = "0";
                    dwReturn["ABPWVDAT"] = "0";
                    dwReturn["ABPLIEFDAT"] = "0";
                    dwReturn["ABPLRUECK"] = "0";
                    dwReturn["ABPLRDATE"] = "0";
                    dwReturn["ABPDLR"] = "  ";
                    dwReturn["ABPVTRUECK"] = "0";
                    dwReturn["ABPVTDATE"] = "0";
                    dwReturn["ABPUNKLAR"] = " ";
                    dwReturn["ABPVERSDAT"] = "0";
                    dwReturn["ABPFREIDAT"] = "0";
                    dwReturn["ABPSTARTDAT"] = "0";
                    dwReturn["ABPENDDAT"] = "0";
                    dwReturn["ABPSTARTDATA"] = "0";
                    dwReturn["ABPENDDATA"] = "0";
                    dwReturn["ABPLTERMAK"] = "0";
                    dwReturn["ABPBESTDAT"] = "0";
                    dwReturn["ABPANRKR"] = "  ";
                    dwReturn["ABPALFDNR"] = "000000";
                    dwReturn["ABPAFOLGEV"] = "000";
                    dwReturn["ABPAFOLGEB"] = "000";
                    dwReturn["ABPANRKR2"] = "  ";
                    dwReturn["ABPALFDNR2"] = "000000";
                    dwReturn["ABPAFOLGEV2"] = "0";
                    dwReturn["ABPAFOLGEB2"] = "0";
                    dwReturn["ABPANRKR3"] = "  ";
                    dwReturn["ABPALFDNR3"] = "000000";
                    dwReturn["ABPAFOLGEV3"] = "0";
                    dwReturn["ABPAFOLGEB3"] = "0";
                    dwReturn["ABPANRKR4"] = "  ";
                    dwReturn["ABPALFDNR4"] = "000000";
                    dwReturn["ABPAFOLGEV4"] = "0";
                    dwReturn["ABPAFOLGEB4"] = "0";
                    dwReturn["ABPVERSAEND"] = " ";
                    dwReturn["ABPVERSZL"] = "000";
                    dwReturn["ABPTLFREIG"] = "000";
                    dwReturn["ABPTLFMG"] = "0";
                    dwReturn["ABPFREIGKZ"] = " ";
                    dwReturn["ABPLMAFOLGE"] = "000";
                    dwReturn["ABPENDAUFM"] = "  ";
                    dwReturn["ABPZAUFM"] = "  ";
                    dwReturn["ABPLIEFNR"] = "        ";
                    dwReturn["ABPGESSTA"] = "TE";
                    dwReturn["ABPKDSTA"] = "10";
                    dwReturn["ABPWSSTA"] = "22";
                    dwReturn["ABPAPSTA"] = "30";
                    dwReturn["ABPRZSTA"] = "40";
                    dwReturn["ABPWPSTA"] = "50";
                    dwReturn["ABPWBSTA"] = "60";
                    dwReturn["ABPABSTA"] = "70";
                    dwReturn["ABPERLKZ"] = " ";
                    dwReturn["ABPERLDAT"] = "0";
                    dwReturn["ABPBEWKZ"] = " ";
                    dwReturn["ABPDRKZ1"] = " ";
                    dwReturn["ABPDRKZ2"] = " ";
                    dwReturn["ABPDRKZ3"] = " ";
                    dwReturn["ABPDRKZ4"] = " ";
                    dwReturn["ABPDRKZ5"] = " ";
                    dwReturn["ABPDRKZ6"] = " ";
                    dwReturn["ABPDRKZ7"] = " ";
                    dwReturn["ABPDRKZ8"] = " ";
                    dwReturn["ABPDRKZ9"] = " ";
                    dwReturn["ABPDRKZ10"] = " ";
                    dwReturn["ABPDR1USER"] = "        ";
                    dwReturn["ABPDR1DAT"] = "00000000";
                    dwReturn["ABPDR8USER"] = "        ";
                    dwReturn["ABPDR8DAT"] = "00000000";
                    dwReturn["ABPRETOURZL"] = "0";
                    dwReturn["ABPRPCOUNTAK"] = "0";
                    dwReturn["ABPURAUFKRS"] = "  ";
                    dwReturn["ABPURAUFLFD"] = "000000";
                    dwReturn["ABPURAUFPOS"] = "000";
                    dwReturn["ABPASAUFKRS"] = "  ";
                    dwReturn["ABPASAUFLFD"] = "000000";
                    dwReturn["ABPASAUFPOS"] = "000";
                    dwReturn["ABPREAFOLGE"] = "000";
                    dwReturn["ABPRWKRS"] = "  ";
                    dwReturn["ABPRWLFD"] = "000000";
                    dwReturn["ABPSTKNRKR"] = "  ";
                    dwReturn["ABPSERIE"] = "  ";
                    dwReturn["ABPAGBKZ"] = " ";
                    dwReturn["ABPWAART"] = "   ";
                    dwReturn["ABPANZSTK"] = "0";
                    dwReturn["ABPZUGETGES"] = "0";
                    dwReturn["ABPSTKKZ"] = " ";
                    dwReturn["ABPSTKLG"] = "0";
                    dwReturn["ABPANZSTKR"] = "0";
                    dwReturn["ABPABZKZ"] = " ";
                    dwReturn["ABPBDEKZ"] = "N";
                    dwReturn["ABPSUBSYS"] = "  ";
                    dwReturn["ABPDATBDE"] = "0";
                    dwReturn["ABPUHRBDE"] = "0";
                    dwReturn["ABPDISPOKZ"] = " ";
                    dwReturn["ABPSCHLICHTE"] = "     ";
                    dwReturn["ABPZZUSATZ"] = "          ";
                    dwReturn["ABPZZUSKZ"] = " ";
                    dwReturn["ABPSZUSTAND"] = "    ";
                    dwReturn["ABPIZUSTAND"] = "    ";
                    dwReturn["ABPSZUSATZKZ1"] = "F";
                    dwReturn["ABPSZUSATZKZ2"] = " ";
                    dwReturn["ABPSZUSATZKZ3"] = " ";
                    dwReturn["ABPSZUSATZKZ4"] = " ";
                    dwReturn["ABPWERKE"] = " ";
                    dwReturn["ABPLBMUSTR"] = "   ";
                    dwReturn["ABPFBMUSTR"] = "   ";
                    dwReturn["ABPREAUFKRS"] = "  ";
                    dwReturn["ABPREAUFLFD"] = "000000";
                    dwReturn["ABPREAUFPOS"] = "000";
                    dwReturn["ABPLTVORL"] = "               ";
                    dwReturn["ABPFDZ"] = "0";
                    dwReturn["ABPARTEX"] = "                                                            ";
                    dwReturn["ABPLETEILNR"] = "0";
                    dwReturn["ABPANSNR"] = "0";
                    dwReturn["ABPUPOS"] = "0";
                    dwReturn["ABPTP"] = "0";
                    dwReturn["ABPLBDENR"] = "0";
                    dwReturn["ABPTMCOUNT"] = "1";
                    dwReturn["ABPTMCOUNTAK"] = "0";
                    dwReturn["ABPKDPARTIE"] = "          ";
                    dwReturn["ABPBAHNKZ"] = " ";
                    dwReturn["ABPGAENGE"] = "0";
                    dwReturn["ABPZWTWAHL"] = "0";
                    dwReturn["ABPDIVWLFM"] = "0";
                    dwReturn["ABPDIVWKG"] = "0";
                    dwReturn["ABPDISPOST"] = " ";
                    dwReturn["ABPKETTAUFT"] = " ";
                    dwReturn["ABPKETTGARN"] = " ";
                    dwReturn["ABPSPGRD"] = "  ";
                    dwReturn["ABPSPBENID"] = "        ";
                    dwReturn["ABPSPDAT"] = "0";
                    dwReturn["ABPLMDAT"] = "0";
                    dwReturn["ABPLMZT"] = "0";
                    dwReturn["ABPWPLKZ"] = " ";
                    dwReturn["ABPKKUNDNR"] = "        ";
                    dwReturn["ABPKLAND"] = "   ";
                    dwReturn["ABPKVB"] = "   ";
                    dwReturn["ABPKVG"] = "   ";
                    dwReturn["ABPKPROGRP"] = "   ";
                    dwReturn["ABPKARTGRP"] = "   ";
                    dwReturn["ABPKVKZ"] = " ";
                    dwReturn["ABPLAEVON"] = "0";
                    dwReturn["ABPLAEBIS"] = "0";
                    dwReturn["ABPSTDLAE"] = "0";
                    dwReturn["ABPMGV"] = "0";
                    dwReturn["ABPMGB"] = "0";
                    dwReturn["ABPPAS"] = "0";
                    dwReturn["ABPPAI"] = "0";
                    dwReturn["ABPAZUTEIL"] = " ";
                    dwReturn["ABPZUTART"] = "1";
                    dwReturn["ABPFA"] = "1";
                    dwReturn["ABPGA"] = "100";
                    dwReturn["ABPQA"] = "100";
                    dwReturn["ABPMAFZST"] = "0";
                    dwReturn["ABPQPKTH"] = "0";
                    dwReturn["ABPQPKTLH"] = "0";
                    dwReturn["ABPSTKNEUTR"] = " ";
                    dwReturn["ABPREGEL"] = "00000000";
                    dwReturn["ABPSTAFFNR"] = "00";
                    dwReturn["ABPWERKEKZ"] = " ";
                    dwReturn["ABPWKSTKRS"] = "  ";
                    dwReturn["ABPWKST"] = "0000";
                    dwReturn["ABPWKART"] = "000000";
                    dwReturn["ABPWMNRKRS"] = "  ";
                    dwReturn["ABPWMLFDNR"] = "0000";
                    dwReturn["ABPWMPOS"] = "00";
                    dwReturn["ABPWMODNR"] = "000";
                    dwReturn["ABPWINTV"] = "00";
                    dwReturn["ABPWKENN"] = "  ";
                    dwReturn["ABPWSTOERGRD"] = "               ";
                    dwReturn["ABPWAKSTKRS"] = "  ";
                    dwReturn["ABPWAKST"] = "0000";
                    dwReturn["ABPWPERSNR"] = "        ";
                    dwReturn["ABPWDATV"] = "0";
                    dwReturn["ABPWZEITV"] = "0";
                    dwReturn["ABPWDATB"] = "0";
                    dwReturn["ABPWZEITB"] = "0";
                    dwReturn["ABPWSTA"] = "  ";
                    dwReturn["ABPFKALK"] = " ";
                    dwReturn["ABPLIEFDATN"] = "0";
                    dwReturn["ABPLAEAENDE"] = "0";
                    dwReturn["ABPLAEAENDA"] = "0";
                    dwReturn["ABPDMWAKZ"] = " ";
                    dwReturn["ABPDMART"] = "                    ";
                    dwReturn["ABPDMVAR"] = "  ";
                    dwReturn["ABPDMDESS"] = "          ";
                    dwReturn["ABPDMCOLORIT"] = "          ";
                    dwReturn["ABPDMFARBE"] = "          ";
                    dwReturn["ABPDMBESCHICH"] = "          ";
                    dwReturn["ABPDKART"] = "                    ";
                    dwReturn["ABPDKVAR"] = "  ";
                    dwReturn["ABPDKFARBE"] = "  ";
                    dwReturn["ABPDKBRUT"] = "0";
                    dwReturn["ABPGENEHMKZ"] = " ";
                    dwReturn["ABPSTUEART"] = "   ";
                    dwReturn["ABPCOMPKZ"] = " ";
                    dwReturn["ABPPOSTYP"] = "FI ";
                    dwReturn["ABPORDER"] = "    ";
                    dwReturn["ABPNPGRUND"] = "   ";
                    dwReturn["ABPREWEIL"] = "  ";
                    dwReturn["ABPFSCHL"] = "   ";
                    dwReturn["ABPKSTKRS"] = "  ";
                    dwReturn["ABPKST"] = "0000";
                    dwReturn["ABPMURW"] = " ";
                    dwReturn["ABPMUVB"] = " ";
                    dwReturn["ABPMUFW"] = " ";
                    dwReturn["ABPMUPF"] = " ";
                    dwReturn["ABPERSTFB"] = " ";
                    dwReturn["ABPERSTDR"] = " ";
                    dwReturn["ABPERSTBE"] = " ";
                    dwReturn["ABPMUCTOD"] = " ";
                    dwReturn["ABPKDFREI"] = " ";
                    dwReturn["ABPREZFB"] = " ";
                    dwReturn["ABPREZDR"] = " ";
                    dwReturn["ABPPRUEF"] = " ";
                    dwReturn["ABPNIXWE"] = " ";
                    dwReturn["ABPCOLSTA"] = " ";
                    dwReturn["ABPFBSTA"] = " ";
                    dwReturn["ABPBAHNNR"] = "0";
                    dwReturn["ABPBAHNBRT"] = "0";
                    dwReturn["ABPFLBEDECK"] = "0";
                    dwReturn["ABPDATABDE"] = "00000000";
                    dwReturn["ABPUHRABDE"] = "000000";
                    dwReturn["ABPLOEKZ"] = " ";
                    dwReturn["ABPTERMDAT"] = "0";
                    dwReturn["ABPPRFI"] = " ";
                    dwReturn["ABPPRVAR"] = " ";
                    dwReturn["ABPPRBE"] = " ";
                    dwReturn["ABPPRZU"] = " ";
                    dwReturn["ABPPRDESS"] = " ";
                    dwReturn["ABPZUSATZ1"] = " ";
                    dwReturn["ABPZUSATZ2"] = " ";
                    dwReturn["ABPZUSATZ3"] = " ";
                    dwReturn["ABPZUSATZ4"] = " ";
                    dwReturn["ABPZUSATZ5"] = " ";
                    dwReturn["ABPFLAG1"] = "0";
                    dwReturn["ABPFLAG2"] = "0";
                    dwReturn["ABPFLAG3"] = "0";
                    dwReturn["ABPFLAG4"] = "0";
                    dwReturn["ABPFLAG5"] = "0";
                    dwReturn["ABPORGMG"] = "0";
                    dwReturn["ABPDIFFMG"] = "0";
                    dwReturn["ABPRARTKZ"] = " ";
                    dwReturn["ABPSTARTDATN"] = "0";
                    dwReturn["ABPAESTAT"] = " ";
                    dwReturn["ABPLBAUFKRS"] = "  ";
                    dwReturn["ABPLBAUFLFD"] = "000000";
                    dwReturn["ABPLBAUFPOS"] = "000";
                    dwReturn["ABPVEAUFTRAG"] = "               ";
                    dwReturn["ABPREGBLOG"] = "0";
                    dwReturn["ABPREGBDATE"] = "0";
                    dwReturn["ABPPROJNR"] = "                        ";
                    dwReturn["ABPSHADE"] = "   ";
                    dwReturn["ABPSHADEUNCL"] = " ";
                    dwReturn["ABPLICHTART"] = "     ";
                    dwReturn["ABPLINE"] = "   ";
                    dwReturn["ABPFILLER1"] = "                                                                                                      ";
                    dwReturn["ABPAENDZL"] = "0";
                    dwReturn["ABPAENDBEN"] = "        ";
                    dwReturn["ABPAENDDAT"] = "0";
                    dwReturn["ABPNEUBEN"] = "        ";
                    dwReturn["ABPNEUDAT"] = "0";
                    #endregion
                    break;
                default:
                    #region====YGR======
                    dwReturn["ABPMANDANT"] = app.Mandant;
                    dwReturn["ABPAUFKRS"] = "ZT";
                    dwReturn["ABPAUFLFD"] = "000004";
                    dwReturn["ABPAUFPOS"] = "001";
                    dwReturn["ABPVFAUFKRS"] = "  ";
                    dwReturn["ABPVFAUFLFD"] = "000000";
                    dwReturn["ABPVFAUFPOS"] = "000";
                    dwReturn["ABPAUFART"] = "GP";
                    dwReturn["ABPAUFST"] = " ";
                    dwReturn["ABPAUFSTV"] = "0";
                    dwReturn["ABPAUFSTB"] = "0";
                    dwReturn["ABPAUTO"] = " ";
                    dwReturn["ABPPRIO"] = "00";
                    dwReturn["ABPTLVF"] = "   ";
                    dwReturn["ABPDIVARTKZ"] = "N";
                    dwReturn["ABPKUNDNR"] = "00000000";
                    dwReturn["ABPWERK"] = "   ";
                    dwReturn["ABPABT"] = "   ";
                    dwReturn["ABPWAKZ"] = "G";
                    dwReturn["ABPART"] = "AKS-137             ";
                    dwReturn["ABPVAR"] = "1  ";
                    dwReturn["ABPFARBE"] = "RD001     ";
                    dwReturn["ABPDESS"] = "          ";
                    dwReturn["ABPCOLORIT"] = "          ";
                    dwReturn["ABPBESCHICH"] = "          ";
                    dwReturn["ABPGROE"] = "       ";
                    dwReturn["ABPAUFM"] = "  ";
                    dwReturn["ABPVERP"] = "   ";
                    dwReturn["ABPANZVP"] = "0";
                    dwReturn["ABPFWARTGRA"] = "     ";
                    dwReturn["ABPFWARTGRP"] = "  ";
                    dwReturn["ABPZLO"] = "01";
                    dwReturn["ABPZLB"] = "ZT";
                    dwReturn["ABPBLO"] = "  ";
                    dwReturn["ABPSME"] = "5";
                    dwReturn["ABPSOLLMENGE1"] = "0";
                    dwReturn["ABPSOLLMENGE2"] = "0";
                    dwReturn["ABPSOLLMENGE3"] = "0";
                    dwReturn["ABPSOLLMENGE4"] = "0";
                    dwReturn["ABPSOLLMENGE5"] = "4300";
                    dwReturn["ABPSOLLMENGE6"] = "0";
                    dwReturn["ABPSOLLMENGE7"] = "0";
                    dwReturn["ABPSOLLMENGE8"] = "0";
                    dwReturn["ABPRESMGE"] = "0";
                    dwReturn["ABPRESKG"] = "0";
                    dwReturn["ABPRESSTK"] = "0";
                    dwReturn["ABPZUGET"] = "0";
                    dwReturn["ABPZUGKG"] = "3200";
                    dwReturn["ABPZUGSTK"] = "0";
                    dwReturn["ABPDILFM"] = "0";
                    dwReturn["ABPDIKG"] = "0";
                    dwReturn["ABPDISTK"] = "0";
                    dwReturn["ABPZTLGKOMP"] = " ";
                    dwReturn["ABPSMGKZZU"] = " ";
                    dwReturn["ABPVLLFM"] = "0";
                    dwReturn["ABPVLKG"] = "0";
                    dwReturn["ABPVLSTK"] = "0";
                    dwReturn["ABPEALFM"] = "0";
                    dwReturn["ABPEAKG"] = "0";
                    dwReturn["ABPEASTK"] = "0";
                    dwReturn["ABPEBLFM"] = "0";
                    dwReturn["ABPEBKG"] = "0";
                    dwReturn["ABPEBSTK"] = "0";
                    dwReturn["ABPABLFM"] = "0";
                    dwReturn["ABPABKG"] = "0";
                    dwReturn["ABPABSTK"] = "0";
                    dwReturn["ABPVSLFM"] = "0";
                    dwReturn["ABPVSKG"] = "0";
                    dwReturn["ABPVSSTK"] = "0";
                    dwReturn["ABPRTLFM"] = "0";
                    dwReturn["ABPRTKG"] = "0";
                    dwReturn["ABPRTSTK"] = "0";
                    dwReturn["ABPROHWDAT"] = "0";
                    dwReturn["ABPKDDAT"] = "0";
                    dwReturn["ABPWVDAT"] = "0";
                    dwReturn["ABPLIEFDAT"] = "0";
                    dwReturn["ABPLRUECK"] = "0";
                    dwReturn["ABPLRDATE"] = "0";
                    dwReturn["ABPDLR"] = "  ";
                    dwReturn["ABPVTRUECK"] = "0";
                    dwReturn["ABPVTDATE"] = "0";
                    dwReturn["ABPUNKLAR"] = " ";
                    dwReturn["ABPVERSDAT"] = "0";
                    dwReturn["ABPFREIDAT"] = "0";
                    dwReturn["ABPSTARTDAT"] = "0";
                    dwReturn["ABPENDDAT"] = "0";
                    dwReturn["ABPSTARTDATA"] = "0";
                    dwReturn["ABPENDDATA"] = "0";
                    dwReturn["ABPLTERMAK"] = "0";
                    dwReturn["ABPBESTDAT"] = "0";
                    dwReturn["ABPANRKR"] = "ZT";
                    dwReturn["ABPALFDNR"] = "000001";
                    dwReturn["ABPAFOLGEV"] = "000";
                    dwReturn["ABPAFOLGEB"] = "000";
                    dwReturn["ABPANRKR2"] = "  ";
                    dwReturn["ABPALFDNR2"] = "000000";
                    dwReturn["ABPAFOLGEV2"] = "0";
                    dwReturn["ABPAFOLGEB2"] = "0";
                    dwReturn["ABPANRKR3"] = "  ";
                    dwReturn["ABPALFDNR3"] = "000000";
                    dwReturn["ABPAFOLGEV3"] = "0";
                    dwReturn["ABPAFOLGEB3"] = "0";
                    dwReturn["ABPANRKR4"] = "  ";
                    dwReturn["ABPALFDNR4"] = "000000";
                    dwReturn["ABPAFOLGEV4"] = "0";
                    dwReturn["ABPAFOLGEB4"] = "0";
                    dwReturn["ABPVERSAEND"] = " ";
                    dwReturn["ABPVERSZL"] = "000";
                    dwReturn["ABPTLFREIG"] = "000";
                    dwReturn["ABPTLFMG"] = "0";
                    dwReturn["ABPFREIGKZ"] = " ";
                    dwReturn["ABPLMAFOLGE"] = "000";
                    dwReturn["ABPENDAUFM"] = "01";
                    dwReturn["ABPZAUFM"] = "  ";
                    dwReturn["ABPLIEFNR"] = "        ";
                    dwReturn["ABPGESSTA"] = "TE";
                    dwReturn["ABPKDSTA"] = "10";
                    dwReturn["ABPWSSTA"] = "20";
                    dwReturn["ABPAPSTA"] = "30";
                    dwReturn["ABPRZSTA"] = "40";
                    dwReturn["ABPWPSTA"] = "50";
                    dwReturn["ABPWBSTA"] = "68";
                    dwReturn["ABPABSTA"] = "70";
                    dwReturn["ABPERLKZ"] = " ";
                    dwReturn["ABPERLDAT"] = "0";
                    dwReturn["ABPBEWKZ"] = " ";
                    dwReturn["ABPDRKZ1"] = " ";
                    dwReturn["ABPDRKZ2"] = " ";
                    dwReturn["ABPDRKZ3"] = " ";
                    dwReturn["ABPDRKZ4"] = " ";
                    dwReturn["ABPDRKZ5"] = " ";
                    dwReturn["ABPDRKZ6"] = " ";
                    dwReturn["ABPDRKZ7"] = " ";
                    dwReturn["ABPDRKZ8"] = " ";
                    dwReturn["ABPDRKZ9"] = " ";
                    dwReturn["ABPDRKZ10"] = " ";
                    dwReturn["ABPDR1USER"] = "        ";
                    dwReturn["ABPDR1DAT"] = "00000000";
                    dwReturn["ABPDR8USER"] = "        ";
                    dwReturn["ABPDR8DAT"] = "00000000";
                    dwReturn["ABPRETOURZL"] = "0";
                    dwReturn["ABPRPCOUNTAK"] = "0";
                    dwReturn["ABPURAUFKRS"] = "  ";
                    dwReturn["ABPURAUFLFD"] = "000000";
                    dwReturn["ABPURAUFPOS"] = "000";
                    dwReturn["ABPASAUFKRS"] = "  ";
                    dwReturn["ABPASAUFLFD"] = "000000";
                    dwReturn["ABPASAUFPOS"] = "000";
                    dwReturn["ABPREAFOLGE"] = "000";
                    dwReturn["ABPRWKRS"] = "  ";
                    dwReturn["ABPRWLFD"] = "000000";
                    dwReturn["ABPSTKNRKR"] = "  ";
                    dwReturn["ABPSERIE"] = "  ";
                    dwReturn["ABPAGBKZ"] = " ";
                    dwReturn["ABPWAART"] = "   ";
                    dwReturn["ABPANZSTK"] = "0";
                    dwReturn["ABPZUGETGES"] = "0";
                    dwReturn["ABPSTKKZ"] = " ";
                    dwReturn["ABPSTKLG"] = "0";
                    dwReturn["ABPANZSTKR"] = "0";
                    dwReturn["ABPABZKZ"] = " ";
                    dwReturn["ABPBDEKZ"] = "N";
                    dwReturn["ABPSUBSYS"] = "  ";
                    dwReturn["ABPDATBDE"] = "0";
                    dwReturn["ABPUHRBDE"] = "0";
                    dwReturn["ABPDISPOKZ"] = " ";
                    dwReturn["ABPSCHLICHTE"] = "     ";
                    dwReturn["ABPZZUSATZ"] = "          ";
                    dwReturn["ABPZZUSKZ"] = " ";
                    dwReturn["ABPSZUSTAND"] = "    ";
                    dwReturn["ABPIZUSTAND"] = "    ";
                    dwReturn["ABPSZUSATZKZ1"] = " ";
                    dwReturn["ABPSZUSATZKZ2"] = " ";
                    dwReturn["ABPSZUSATZKZ3"] = " ";
                    dwReturn["ABPSZUSATZKZ4"] = " ";
                    dwReturn["ABPWERKE"] = " ";
                    dwReturn["ABPLBMUSTR"] = "   ";
                    dwReturn["ABPFBMUSTR"] = "   ";
                    dwReturn["ABPREAUFKRS"] = "  ";
                    dwReturn["ABPREAUFLFD"] = "000000";
                    dwReturn["ABPREAUFPOS"] = "000";
                    dwReturn["ABPLTVORL"] = "               ";
                    dwReturn["ABPFDZ"] = "0";
                    dwReturn["ABPARTEX"] = "                                                            ";
                    dwReturn["ABPLETEILNR"] = "0";
                    dwReturn["ABPANSNR"] = "0";
                    dwReturn["ABPUPOS"] = "0";
                    dwReturn["ABPTP"] = "0";
                    dwReturn["ABPLBDENR"] = "0";
                    dwReturn["ABPTMCOUNT"] = "1";
                    dwReturn["ABPTMCOUNTAK"] = "0";
                    dwReturn["ABPKDPARTIE"] = "          ";
                    dwReturn["ABPBAHNKZ"] = " ";
                    dwReturn["ABPGAENGE"] = "0";
                    dwReturn["ABPZWTWAHL"] = "0";
                    dwReturn["ABPDIVWLFM"] = "0";
                    dwReturn["ABPDIVWKG"] = "0";
                    dwReturn["ABPDISPOST"] = " ";
                    dwReturn["ABPKETTAUFT"] = " ";
                    dwReturn["ABPKETTGARN"] = " ";
                    dwReturn["ABPSPGRD"] = "  ";
                    dwReturn["ABPSPBENID"] = "        ";
                    dwReturn["ABPSPDAT"] = "0";
                    dwReturn["ABPLMDAT"] = "0";
                    dwReturn["ABPLMZT"] = "0";
                    dwReturn["ABPWPLKZ"] = " ";
                    dwReturn["ABPKKUNDNR"] = "        ";
                    dwReturn["ABPKLAND"] = "   ";
                    dwReturn["ABPKVB"] = "   ";
                    dwReturn["ABPKVG"] = "   ";
                    dwReturn["ABPKPROGRP"] = "   ";
                    dwReturn["ABPKARTGRP"] = "   ";
                    dwReturn["ABPKVKZ"] = " ";
                    dwReturn["ABPLAEVON"] = "0";
                    dwReturn["ABPLAEBIS"] = "0";
                    dwReturn["ABPSTDLAE"] = "0";
                    dwReturn["ABPMGV"] = "0";
                    dwReturn["ABPMGB"] = "0";
                    dwReturn["ABPPAS"] = "0";
                    dwReturn["ABPPAI"] = "0";
                    dwReturn["ABPAZUTEIL"] = " ";
                    dwReturn["ABPZUTART"] = " ";
                    dwReturn["ABPFA"] = "0";
                    dwReturn["ABPGA"] = "0";
                    dwReturn["ABPQA"] = "0";
                    dwReturn["ABPMAFZST"] = "0";
                    dwReturn["ABPQPKTH"] = "0";
                    dwReturn["ABPQPKTLH"] = "0";
                    dwReturn["ABPSTKNEUTR"] = " ";
                    dwReturn["ABPREGEL"] = "00000000";
                    dwReturn["ABPSTAFFNR"] = "00";
                    dwReturn["ABPWERKEKZ"] = " ";
                    dwReturn["ABPWKSTKRS"] = "  ";
                    dwReturn["ABPWKST"] = "0000";
                    dwReturn["ABPWKART"] = "000000";
                    dwReturn["ABPWMNRKRS"] = "  ";
                    dwReturn["ABPWMLFDNR"] = "0000";
                    dwReturn["ABPWMPOS"] = "00";
                    dwReturn["ABPWMODNR"] = "000";
                    dwReturn["ABPWINTV"] = "00";
                    dwReturn["ABPWKENN"] = "  ";
                    dwReturn["ABPWSTOERGRD"] = "               ";
                    dwReturn["ABPWAKSTKRS"] = "  ";
                    dwReturn["ABPWAKST"] = "0000";
                    dwReturn["ABPWPERSNR"] = "        ";
                    dwReturn["ABPWDATV"] = "0";
                    dwReturn["ABPWZEITV"] = "0";
                    dwReturn["ABPWDATB"] = "0";
                    dwReturn["ABPWZEITB"] = "0";
                    dwReturn["ABPWSTA"] = "  ";
                    dwReturn["ABPFKALK"] = " ";
                    dwReturn["ABPLIEFDATN"] = "0";
                    dwReturn["ABPLAEAENDE"] = "0";
                    dwReturn["ABPLAEAENDA"] = "0";
                    dwReturn["ABPDMWAKZ"] = " ";
                    dwReturn["ABPDMART"] = "                    ";
                    dwReturn["ABPDMVAR"] = "  ";
                    dwReturn["ABPDMDESS"] = "          ";
                    dwReturn["ABPDMCOLORIT"] = "          ";
                    dwReturn["ABPDMFARBE"] = "          ";
                    dwReturn["ABPDMBESCHICH"] = "          ";
                    dwReturn["ABPDKART"] = "                    ";
                    dwReturn["ABPDKVAR"] = "  ";
                    dwReturn["ABPDKFARBE"] = "  ";
                    dwReturn["ABPDKBRUT"] = "0";
                    dwReturn["ABPGENEHMKZ"] = " ";
                    dwReturn["ABPSTUEART"] = "   ";
                    dwReturn["ABPCOMPKZ"] = " ";
                    dwReturn["ABPPOSTYP"] = "MU ";
                    dwReturn["ABPORDER"] = "    ";
                    dwReturn["ABPNPGRUND"] = "   ";
                    dwReturn["ABPREWEIL"] = "  ";
                    dwReturn["ABPFSCHL"] = "   ";
                    dwReturn["ABPKSTKRS"] = "  ";
                    dwReturn["ABPKST"] = "0000";
                    dwReturn["ABPMURW"] = " ";
                    dwReturn["ABPMUVB"] = " ";
                    dwReturn["ABPMUFW"] = " ";
                    dwReturn["ABPMUPF"] = " ";
                    dwReturn["ABPERSTFB"] = " ";
                    dwReturn["ABPERSTDR"] = " ";
                    dwReturn["ABPERSTBE"] = " ";
                    dwReturn["ABPMUCTOD"] = " ";
                    dwReturn["ABPKDFREI"] = " ";
                    dwReturn["ABPREZFB"] = " ";
                    dwReturn["ABPREZDR"] = " ";
                    dwReturn["ABPPRUEF"] = " ";
                    dwReturn["ABPNIXWE"] = " ";
                    dwReturn["ABPCOLSTA"] = " ";
                    dwReturn["ABPFBSTA"] = " ";
                    dwReturn["ABPBAHNNR"] = "0";
                    dwReturn["ABPBAHNBRT"] = "0";
                    dwReturn["ABPFLBEDECK"] = "0";
                    dwReturn["ABPDATABDE"] = "00000000";
                    dwReturn["ABPUHRABDE"] = "000000";
                    dwReturn["ABPLOEKZ"] = " ";
                    dwReturn["ABPTERMDAT"] = "0";
                    dwReturn["ABPPRFI"] = " ";
                    dwReturn["ABPPRVAR"] = " ";
                    dwReturn["ABPPRBE"] = " ";
                    dwReturn["ABPPRZU"] = " ";
                    dwReturn["ABPPRDESS"] = " ";
                    dwReturn["ABPZUSATZ1"] = " ";
                    dwReturn["ABPZUSATZ2"] = " ";
                    dwReturn["ABPZUSATZ3"] = " ";
                    dwReturn["ABPZUSATZ4"] = " ";
                    dwReturn["ABPZUSATZ5"] = " ";
                    dwReturn["ABPFLAG1"] = "0";
                    dwReturn["ABPFLAG2"] = "0";
                    dwReturn["ABPFLAG3"] = "0";
                    dwReturn["ABPFLAG4"] = "0";
                    dwReturn["ABPFLAG5"] = "0";
                    dwReturn["ABPORGMG"] = "0";
                    dwReturn["ABPDIFFMG"] = "0";
                    dwReturn["ABPRARTKZ"] = " ";
                    dwReturn["ABPSTARTDATN"] = "0";
                    dwReturn["ABPAESTAT"] = " ";
                    dwReturn["ABPLBAUFKRS"] = "  ";
                    dwReturn["ABPLBAUFLFD"] = "000000";
                    dwReturn["ABPLBAUFPOS"] = "000";
                    dwReturn["ABPVEAUFTRAG"] = "               ";
                    dwReturn["ABPREGBLOG"] = "0";
                    dwReturn["ABPREGBDATE"] = "0";
                    dwReturn["ABPPROJNR"] = "                        ";
                    dwReturn["ABPSHADE"] = "   ";
                    dwReturn["ABPSHADEUNCL"] = " ";
                    dwReturn["ABPLICHTART"] = "     ";
                    dwReturn["ABPLINE"] = "   ";
                    dwReturn["ABPFILLER1"] = "                                                                                                      ";
                    dwReturn["ABPAENDZL"] = "1";
                    dwReturn["ABPAENDBEN"] = "INTEXE  ";
                    dwReturn["ABPAENDDAT"] = "0";
                    dwReturn["ABPNEUBEN"] = "INTEXE  ";
                    dwReturn["ABPNEUDAT"] = "0";
                    #endregion
                    break;
            }
            if (IsConvert)
            {
                foreach (DataColumn cm in dwInput.Table.Columns)
                {
                    if (dwInput[cm.ColumnName].ToString() == "")
                        continue;
                    if (dwReturn.Table.Columns.Contains(cm.ColumnName))
                    {
                        dwReturn[cm.ColumnName] = dwInput[cm.ColumnName];
                    }
                }
            }
            return dwReturn;
        }

        public DataSet QueryABPOS(string client, string krs, string lfd, string pos = null)
        {
            or1 = OracleDB.CreateCommand();
            if (pos != null)
            {
                or1.CommandText = "SELECT * FROM ABPOS WHERE  "
                + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS";
                or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = client;
                or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = krs;
                or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = lfd;
                or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = pos;
            }
            else
            {
                or1.CommandText = "SELECT * FROM ABPOS WHERE  "
             + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD ";
                or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = client;
                or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = krs;
                or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = lfd;
            }
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }

        public void DeleteABPOS(string client, string krs, string lfd, string pos, int option = 1)
        {
            or1 = OracleDB.CreateCommand();
            dwData = TBMain.NewRow();
            switch (option)
            {
                case 1:
                    dwData["ABPMANDANT"] = client;
                    dwData["ABPAUFKRS"] = krs;
                    dwData["ABPAUFLFD"] = lfd;
                    dwData["ABPAUFPOS"] = pos;
                    DABP01(dwData);
                    break;
                case 2:
                    dwData["ABPMANDANT"] = client;
                    dwData["ABPAUFKRS"] = krs;
                    dwData["ABPAUFLFD"] = lfd;
                    DABP02(dwData);
                    break;
                case 3:
                    or1.CommandText = "DELETE_ORDER_NETWORK";
                    or1.CommandType = CommandType.StoredProcedure;
                    or1.Parameters.Add("AUFKRS", OracleType.NVarChar).Value = krs;
                    or1.Parameters.Add("AUFLFD", OracleType.NVarChar).Value = lfd;
                    or1.Parameters.Add("AUFPOS", OracleType.NVarChar).Value = pos;
                    Connect2Proxy(or1);
                    break;
                default:
                    break;
            }
        }

        public void DeleteABPOS(DataRow dwData, int option = 1)
        {

            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    DABP01(dwData);
                    break;
                default:
                    break;
            }
        }
        public void DABP01(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "DELETE FROM ABPOS   WHERE   ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);

        }
        public void DABP02(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "DELETE FROM ABPOS   WHERE   ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);

        }
        public void InsertABPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            dwData["ABPNEUBEN"] = app.User;
            dwData["ABPNEUDAT"] = date;
            or1 = OracleDB.CreateCommand();
            switch (app.company)
            {
                case "JLT":
                    or1.CommandText = "INSERT INTO ABPOS(ABPMANDANT, ABPAUFKRS, ABPAUFLFD, ABPAUFPOS, ABPVFAUFKRS, ABPVFAUFLFD, ABPVFAUFPOS, ABPAUFART, ABPAUFST, ABPAUFSTV, ABPAUFSTB, ABPAUTO, ABPPRIO, ABPTLVF, ABPDIVARTKZ, ABPKUNDNR, ABPWERK, ABPABT, ABPWAKZ, ABPART, ABPVAR, ABPFARBE, ABPDESS, ABPCOLORIT, ABPBESCHICH, ABPGROE, ABPAUFM, ABPVERP, ABPANZVP, ABPFWARTGRA, ABPFWARTGRP, ABPZLO, ABPZLB, ABPBLO, ABPSME, ABPSOLLMENGE1, ABPSOLLMENGE2, ABPSOLLMENGE3, ABPSOLLMENGE4, ABPSOLLMENGE5, ABPSOLLMENGE6, ABPSOLLMENGE7, ABPSOLLMENGE8, ABPRESMGE, ABPRESKG, ABPRESSTK, ABPZUGET, ABPZUGKG, ABPZUGSTK, ABPDILFM, ABPDIKG, ABPDISTK, ABPZTLGKOMP, ABPSMGKZZU, ABPVLLFM, ABPVLKG, ABPVLSTK, ABPEALFM, ABPEAKG, ABPEASTK, ABPEBLFM, ABPEBKG, ABPEBSTK, ABPABLFM, ABPABKG, ABPABSTK, ABPVSLFM, ABPVSKG, ABPVSSTK, ABPRTLFM, ABPRTKG, ABPRTSTK, ABPROHWDAT, ABPKDDAT, ABPWVDAT, ABPLIEFDAT, ABPLRUECK, ABPLRDATE, ABPDLR, ABPVTRUECK, ABPVTDATE, ABPUNKLAR, ABPVERSDAT, ABPFREIDAT, ABPSTARTDAT, ABPENDDAT, ABPSTARTDATA, ABPENDDATA, ABPLTERMAK, ABPBESTDAT, ABPANRKR, ABPALFDNR, ABPAFOLGEV, ABPAFOLGEB, ABPANRKR2, ABPALFDNR2, ABPAFOLGEV2, ABPAFOLGEB2, ABPANRKR3, ABPALFDNR3, ABPAFOLGEV3, ABPAFOLGEB3, ABPANRKR4, ABPALFDNR4, ABPAFOLGEV4, ABPAFOLGEB4, ABPVERSAEND, ABPVERSZL, ABPTLFREIG, ABPTLFMG, ABPFREIGKZ, ABPLMAFOLGE, ABPENDAUFM, ABPZAUFM, ABPLIEFNR, ABPGESSTA, ABPKDSTA, ABPWSSTA, ABPAPSTA, ABPRZSTA, ABPWPSTA, ABPWBSTA, ABPABSTA, ABPERLKZ, ABPERLDAT, ABPBEWKZ, ABPDRKZ1, ABPDRKZ2, ABPDRKZ3, ABPDRKZ4, ABPDRKZ5, ABPDRKZ6, ABPDRKZ7, ABPDRKZ8, ABPDRKZ9, ABPDRKZ10, ABPDR1USER, ABPDR1DAT, ABPDR8USER, ABPDR8DAT, ABPRETOURZL, ABPRPCOUNTAK, ABPURAUFKRS, ABPURAUFLFD, ABPURAUFPOS, ABPASAUFKRS, ABPASAUFLFD, ABPASAUFPOS, ABPREAFOLGE, ABPRWKRS, ABPRWLFD, ABPSTKNRKR, ABPSERIE, ABPAGBKZ, ABPWAART, ABPANZSTK, ABPZUGETGES, ABPSTKKZ, ABPSTKLG, ABPANZSTKR, ABPABZKZ, ABPBDEKZ, ABPSUBSYS, ABPDATBDE, ABPUHRBDE, ABPDISPOKZ, ABPSCHLICHTE, ABPZZUSATZ, ABPZZUSKZ, ABPSZUSTAND, ABPIZUSTAND, ABPSZUSATZKZ1, ABPSZUSATZKZ2, ABPSZUSATZKZ3, ABPSZUSATZKZ4, ABPWERKE, ABPLBMUSTR, ABPFBMUSTR, ABPREAUFKRS, ABPREAUFLFD, ABPREAUFPOS, ABPLTVORL, ABPFDZ, ABPARTEX, ABPLETEILNR, ABPANSNR, ABPUPOS, ABPTP, ABPLBDENR, ABPTMCOUNT, ABPTMCOUNTAK, ABPKDPARTIE, ABPBAHNKZ, ABPGAENGE, ABPZWTWAHL, ABPDIVWLFM, ABPDIVWKG, ABPDISPOST, ABPKETTAUFT, ABPKETTGARN, ABPSPGRD, ABPSPBENID, ABPSPDAT, ABPLMDAT, ABPLMZT, ABPWPLKZ, ABPKKUNDNR, ABPKLAND, ABPKVB, ABPKVG, ABPKPROGRP, ABPKARTGRP, ABPKVKZ, ABPLAEVON, ABPLAEBIS, ABPSTDLAE, ABPMGV, ABPMGB, ABPPAS, ABPPAI, ABPAZUTEIL, ABPZUTART, ABPFA, ABPGA, ABPQA, ABPMAFZST, ABPQPKTH, ABPQPKTLH, ABPSTKNEUTR, ABPREGEL, ABPSTAFFNR, ABPWERKEKZ, ABPWKSTKRS, ABPWKST, ABPWKART, ABPWMNRKRS, ABPWMLFDNR, ABPWMPOS, ABPWMODNR, ABPWINTV, ABPWKENN, ABPWSTOERGRD, ABPWAKSTKRS, ABPWAKST, ABPWPERSNR, ABPWDATV, ABPWZEITV, ABPWDATB, ABPWZEITB, ABPWSTA, ABPFKALK, ABPLIEFDATN, ABPLAEAENDE, ABPLAEAENDA, ABPDMWAKZ, ABPDMART, ABPDMVAR, ABPDMDESS, ABPDMCOLORIT, ABPDMFARBE, ABPDMBESCHICH, ABPDKART, ABPDKVAR, ABPDKFARBE, ABPDKBRUT, ABPGENEHMKZ, ABPSTUEART, ABPCOMPKZ, ABPPOSTYP, ABPORDER, ABPNPGRUND, ABPREWEIL, ABPFSCHL, ABPKSTKRS, ABPKST, ABPMURW, ABPMUVB, ABPMUFW, ABPMUPF, ABPERSTFB, ABPERSTDR, ABPERSTBE, ABPMUCTOD, ABPKDFREI, ABPREZFB, ABPREZDR, ABPPRUEF, ABPNIXWE, ABPCOLSTA, ABPFBSTA, ABPBAHNNR, ABPBAHNBRT, ABPFLBEDECK, ABPDATABDE, ABPUHRABDE, ABPLOEKZ, ABPTERMDAT, ABPPRFI, ABPPRVAR, ABPPRBE, ABPPRZU, ABPPRDESS, ABPZUSATZ1, ABPZUSATZ2, ABPZUSATZ3, ABPZUSATZ4, ABPZUSATZ5, ABPFLAG1, ABPFLAG2, ABPFLAG3, ABPFLAG4, ABPFLAG5, ABPORGMG, ABPDIFFMG, ABPRARTKZ, ABPSTARTDATN, ABPAESTAT, ABPLBAUFKRS, ABPLBAUFLFD, ABPLBAUFPOS, ABPVEAUFTRAG, ABPREGBLOG, ABPREGBDATE, ABPPROJNR, ABPSHADE, ABPSHADEUNCL, ABPLICHTART, ABPLINE, ABPFILLER1, ABPAENDZL, ABPAENDBEN, ABPAENDDAT, ABPNEUBEN, ABPNEUDAT)"
                        + "VALUES (:ABPMANDANT, :ABPAUFKRS, :ABPAUFLFD, :ABPAUFPOS, '  ', '000000', '000',:ABPAUFART, ' ', '0', '0', ' ', '00', '   ', ' ', '00000000', '   ', '   '"
                        + ", ' ', '                    ', '   ', '          ', '          ', '          ', '          ', '       ', '  ', '   ', 0, '     ', '  ', '  ', '  ', '  ', '1', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"
                        + ", 0, 0, 0, '  ', 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, '  ', '      ', '000', '000', '  ', '000000', 0, 0, '  ', '000000', 0, 0, '  ', '000000', 0, 0, ' ', '006', '000', 0, ' ', '000', '  ', '  ', '        ', 'TE', '10'"
                        + ", '20', '30', '40', '50', '60', '70', ' ', 0, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '        ', '00000000', '        ', '00000000', 0, 0, '  ', '000000', '000', '  ', '000000', '000', '000', '  ', '000000'"
                        + ", '  ', '  ', ' ', '   ', 0, 0, ' ', 0, 0, ' ', 'N', '  ', 0, 0, ' ', '     ', '          ', ' ', '    ', '    ', ' ', ' ', ' ', ' ', ' ', '   ', '   ', '  ', '000000', '000', '               ', 0, '                                                            '"
                        + ", 0, 0, 0, 0, 0, 1, 0, '          ', ' ', 0, 0, 0, 0, ' ', ' ', ' ', '  ', '        ', 0, 0, 0, ' ', '        ', '   ', '   ', '   ', '   ', '   ', ' ', 0, 0, 0, 0, 0, 0, 0, ' ', ' ', 0, 0, 0, 0, 0, 0, ' ', '00000000', '00', ' ', '  ', '0000'"
                        + ", '000000', '  ', '0000', '00', '000', '00', '  ', '               ', '  ', '0000', '        ', 0, 0, 0, 0, '  ', ' ', 0, 0, 0, ' ', '                    ', '  ', '          ', '          ', '          ', '          ', '                    '"
                        + ", '  ', '  ', 0, ' ', '   ', ' ', '   ', '    ', '   ', '  ', '   ', '  ', '0000', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '0', 0, 0, '00000000', '000000', ' ', '        ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 0"
                        + ", 0, 0, 0, 0, 0, 0, ' ', '        ', ' ', '  ', '000000', '000', '               ', 0, 0, '                        ', '   ', ' ', '     ', '   ', '                                                                                                      '"
                        + ", 1, '        ', 0,:ABPNEUBEN, :ABPNEUDAT)";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"];
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"];
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"];
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"];
                    or1.Parameters.Add("ABPAUFART", OracleType.NVarChar).Value = dwData["ABPAUFART"];
                    or1.Parameters.Add("ABPNEUBEN", OracleType.NVarChar).Value = dwData["ABPNEUBEN"];
                    or1.Parameters.Add("ABPNEUDAT", OracleType.NVarChar).Value = dwData["ABPNEUDAT"];
                    break;
                case "FLT":
                    or1.CommandText = "INSERT INTO ABPOS ( ABPMANDANT,ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPVFAUFKRS,ABPVFAUFLFD,ABPVFAUFPOS,ABPAUFART,ABPAUFST,ABPAUFSTV,ABPAUFSTB,ABPAUTO,ABPPRIO,ABPTLVF,ABPDIVARTKZ,ABPKUNDNR,ABPWERK,ABPABT,ABPWAKZ,ABPART,ABPVAR,ABPFARBE,ABPDESS,ABPCOLORIT,ABPBESCHICH,ABPGROE,ABPAUFM,ABPVERP,ABPANZVP,ABPFWARTGRA,ABPFWARTGRP,ABPZLO,ABPZLB,ABPBLO,ABPSME,ABPSOLLMENGE1,ABPSOLLMENGE2,ABPSOLLMENGE3,ABPSOLLMENGE4,ABPSOLLMENGE5,ABPSOLLMENGE6,ABPSOLLMENGE7,ABPSOLLMENGE8,ABPRESMGE,ABPRESKG,ABPRESSTK,ABPZUGET,ABPZUGKG,ABPZUGSTK,ABPDILFM,ABPDIKG,ABPDISTK,ABPZTLGKOMP,ABPSMGKZZU,ABPVLLFM,ABPVLKG,ABPVLSTK,ABPEALFM,ABPEAKG,ABPEASTK,ABPEBLFM,ABPEBKG,ABPEBSTK,ABPABLFM,ABPABKG,ABPABSTK,ABPVSLFM,ABPVSKG,ABPVSSTK,ABPRTLFM,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:,:ABPFLAG4:,:ABPFLAG5:,:ABPORGMG:,:ABPDIFFMG:,:ABPRARTKZ:,:ABPSTARTDATN:,:ABPAESTAT:,:ABPLBAUFKRS:,:ABPLBAUFLFD:,:ABPLBAUFPOS:,:ABPVEAUFTRAG:,:ABPREGBLOG:,:ABPREGBDATE:,:ABPPROJNR:,:ABPSHADE:,:ABPSHADEUNCL:,:ABPLICHTART:,:ABPLINE:,:ABPVERL:,:ABPAUSGBRT:,:ABPEINGBRT:,:ABPFILLER1:,:ABPAENDZL:,:ABPAENDBEN:,:ABPAENDDAT:,:ABPNEUBEN:,:ABPNEUDAT:)";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;
                default:
                case "YGR":
                    or1.CommandText = "INSERT INTO ABPOS ( ABPMANDANT,ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPVFAUFKRS,ABPVFAUFLFD,ABPVFAUFPOS,ABPAUFART,ABPAUFST,ABPAUFSTV,ABPAUFSTB,ABPAUTO,ABPPRIO,ABPTLVF,ABPDIVARTKZ,ABPKUNDNR,ABPWERK,ABPABT,ABPWAKZ,ABPART,ABPVAR,ABPFARBE,ABPDESS,ABPCOLORIT,ABPBESCHICH,ABPGROE,ABPAUFM,ABPVERP,ABPANZVP,ABPFWARTGRA,ABPFWARTGRP,ABPZLO,ABPZLB,ABPBLO,ABPSME,ABPSOLLMENGE1,ABPSOLLMENGE2,ABPSOLLMENGE3,ABPSOLLMENGE4,ABPSOLLMENGE5,ABPSOLLMENGE6,ABPSOLLMENGE7,ABPSOLLMENGE8,ABPRESMGE,ABPRESKG,ABPRESSTK,ABPZUGET,ABPZUGKG,ABPZUGSTK,ABPDILFM,ABPDIKG,ABPDISTK,ABPZTLGKOMP,ABPSMGKZZU,ABPVLLFM,ABPVLKG,ABPVLSTK,ABPEALFM,ABPEAKG,ABPEASTK,ABPEBLFM,ABPEBKG,ABPEBSTK,ABPABLFM,ABPABKG,ABPABSTK,ABPVSLFM,ABPVS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AG2:,:ABPFLAG3:,:ABPFLAG4:,:ABPFLAG5:,:ABPORGMG:,:ABPDIFFMG:,:ABPRARTKZ:,:ABPSTARTDATN:,:ABPAESTAT:,:ABPLBAUFKRS:,:ABPLBAUFLFD:,:ABPLBAUFPOS:,:ABPVEAUFTRAG:,:ABPREGBLOG:,:ABPREGBDATE:,:ABPPROJNR:,:ABPSHADE:,:ABPSHADEUNCL:,:ABPLICHTART:,:ABPLINE:,:ABPFILLER1:,:ABPAENDZL:,:ABPAENDBEN:,:ABPAENDDAT:,:ABPNEUBEN:,:ABPNEUDAT:)";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    break;
            }
            Connect2Proxy(or1);
        }

        public void MapABPOS(ref DataRow dwLocal, DataRow dwData)
        {
            BlindMap(ref dwLocal, dwData);
        }

        public DataSet QueryABPOS(DataRow dwData, int option = 1)
        {


            string FSARTPRGR = "";
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 0:
                    or1.CommandText = "SELECT * FROM ABPOS WHERE  ROWNUM<2 ";
                    SResult = Connect2Proxy(or1);
                    break;
                case 1:
                    SResult = QABP01(dwData);
                    break;
                case 2:
                    or1.CommandText = "SELECT M.*,APKSPEZIF FROM ABPOS M LEFT JOIN APKOPF ON ABPANRKR=APKANRKRS AND ABPALFDNR=APKALFDNR WHERE  "
                    + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 3:

                    or1.CommandText = "SELECT * FROM ABPOS WHERE   ABPMANDANT=:ABPMANDANT  AND ABPERLKZ=' '  ORDER BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 4:

                    or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS, ABPART,ABPVAR,ABPFARBE,ABPBESCHICH,"
                        + " ABPSOLLMENGE1*0.01 AS ABPSOLLMENGE1,ABPSOLLMENGE5*0.01 AS ABPSOLLMENGE5,ABPSOLLMENGE7*0.01 AS ABPSOLLMENGE7,"
                        + " ABPSTARTDAT,ABPLIEFDAT,ABABEM1,ABABEM2 FROM ABPOS P, ABAUFM MU WHERE "
                        + " ABPMANDANT=:ABPMANDANT  AND ABPERLKZ=' ' AND ABAMANDANT=ABPMANDANT"
                        + " AND ABPAUFKRS=ABAAUFKRS"
                        + " AND ABPAUFLFD=ABAAUFLFD"
                        + " AND ABPAUFPOS=ABAAUFPOS"
                        + " AND ABAAPOS='0001' AND ABPAUFART='VA' AND ROWNUM<200"
                        + " ORDER BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 5:
                    or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS, ABPART,ABPVAR,ABPFARBE,ABPGROE,"
                        + " ABPSOLLMENGE7,"
                        + " ABPSTARTDAT,ABPLIEFDAT,ABABEM1,ABABEM2 FROM ABPOS P, ABAUFM MU WHERE "
                        + " ABPMANDANT=:ABPMANDANT  AND ABPERLKZ=' ' AND ABAMANDANT=ABPMANDANT"
                        + " AND ABPAUFKRS=ABAAUFKRS"
                        + " AND ABPAUFLFD=ABAAUFLFD"
                        + " AND ABPAUFPOS=ABAAUFPOS"
                        + " AND ABAAPOS='0001' AND ABPAUFART='VA' AND ROWNUM<200"
                        + " ORDER BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 6:

                    or1.CommandText = "SELECT DISTINCT   ABPAUFKRS,ABPAUFLFD,ABPART"
                    + " FROM ABFOLGE LEFT JOIN ABPOS ON ABFAUFKRS=ABPAUFKRS AND ABPAUFLFD=ABFAUFLFD AND ABPAUFPOS=ABFAUFPOS WHERE"
                        + " ABFMANDANT=:ABFMANDANT AND ABFKSTKRS='01' ORDER BY 1,2 ";
                    or1.Parameters.Add("ABFMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 8:
                    FSARTPRGR = dwData["ABPART"].ToString().Trim();

                    or1.CommandText = "SELECT DISTINCT P.*,FSARTPRGR,FSABEZ,FSFFBEZ FROM ABPOS P RIGHT JOIN ICC_ABAUFM M "
                        + " ON ABPAUFKRS=M.ABAVKAUFKRS AND ABPAUFLFD=M.ABAVKAUFLFD AND ABPAUFPOS=M.ABAVKAUFPOS "
                        + " AND M.FSARTPRGR IN (" + FSARTPRGR + ")"
                        + " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 81:
                    or1.CommandText = "SELECT DISTINCT P.*,FSARTPRGR,FSABEZ,FSFFBEZ FROM ABPOS P RIGHT JOIN ICC_ABAUFM M "
                        + " ON ABPAUFKRS=M.ABAVKAUFKRS AND ABPAUFLFD=M.ABAVKAUFLFD AND ABPAUFPOS=M.ABAVKAUFPOS "
                        + " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 9:
                    FSARTPRGR = dwData["ABPART"].ToString().Trim();

                    or1.CommandText = "SELECT DISTINCT M.FSSZUSCHN,ABPSPGRD,FSARTPRGR,M.ABPART,M.ABPFARBE FROM ICC_ABAUFM M JOIN ABPOS P"
                        + " ON M.ABAVKAUFKRS=P.ABPAUFKRS AND M.ABAVKAUFLFD=P.ABPAUFLFD AND M.ABAVKAUFPOS=P.ABPAUFPOS"
                        + " JOIN FSSTUELI X ON M.ABPART=FSSART  AND ABAART=FSSMART  AND ABAFARBE=FSSMFARBE "
                         + " AND M.FSARTPRGR IN (" + FSARTPRGR + ")"
                        + " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 91:
                    or1.CommandText = "SELECT DISTINCT M.FSSZUSCHN,ABPSPGRD,FSARTPRGR,M.ABPART,M.ABPFARBE,ABPTP FROM ICC_ABAUFM M JOIN ABPOS P"
                        + " ON M.ABAVKAUFKRS=P.ABPAUFKRS AND M.ABAVKAUFLFD=P.ABPAUFLFD AND M.ABAVKAUFPOS=P.ABPAUFPOS"
                        + " JOIN FSSTUELI X ON M.ABPART=FSSART  AND ABAART=FSSMART  AND ABAFARBE=FSSMFARBE "
                        + " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 10:

                    or1.CommandText = "SELECT * FROM ABPOS   "
                        + " WHERE ABPMANDANT=:ABPMANDANT  AND ABPART=:ABPART";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 11:

                    or1.CommandText = "SELECT DISTINCT  P.ABPAUFKRS,P.ABPAUFLFD,P.ABPAUFPOS,P.ABPART,P.ABPFARBE,P.ABPGROE,ABPTP"
                    + " FROM FSSTUELI S JOIN FDECK FD ON FDART=FSSMART "
                    + " JOIN WDECK ON WDART=FSSMART "
                    + " JOIN ABPOS P ON ABPAUFKRS=WDAUFKRS AND ABPAUFLFD=WDAUFLFD AND ABPAUFPOS=WDAUFPOS"
                        + " WHERE FSSMANDANT=:FSSMANDANT  AND FSSMART=:FSSMART";
                    or1.Parameters.Add("FSSMANDANT", OracleType.NVarChar).Value = dwData["FSSMANDANT"].ToString();
                    or1.Parameters.Add("FSSMART", OracleType.NVarChar).Value = dwData["FSSMART"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 12:

                    or1.CommandText = "SELECT DISTINCT  P.ABPAUFKRS,P.ABPAUFLFD,P.ABPAUFPOS,P.ABPART,P.ABPFARBE,P.ABPGROE,ABPTP"
                    + " FROM FSSTUELI S JOIN FDECK FD ON FDART=FSSMART "
                    + " JOIN FDECK ON FDART=FSSMART "
                    + " JOIN ABPOS P ON ABPAUFKRS=FDAUFKRS AND ABPAUFLFD=FDAUFLFD AND ABPAUFPOS=FDAUFPOS"
                        + " WHERE FSSMANDANT=:FSSMANDANT  AND FSSMART=:FSSMART";
                    or1.Parameters.Add("FSSMANDANT", OracleType.NVarChar).Value = dwData["FSSMANDANT"].ToString();
                    or1.Parameters.Add("FSSMART", OracleType.NVarChar).Value = dwData["FSSMART"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 13:

                    or1.CommandText = "SELECT DISTINCT P.*,FSABEZ,FSFFBEZ FROM ABPOS P RIGHT JOIN ICC_ABAUFM M "
                        + " ON ABPAUFKRS=M.ABAVKAUFKRS AND ABPAUFLFD=M.ABAVKAUFLFD AND ABPAUFPOS=M.ABAVKAUFPOS "
                        //+ " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE AND ABPSPGRD=:ABPSPGRD";
                        + " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    //or1.Parameters.Add("ABPSPGRD", OracleType.NVarChar).Value = dwData["ABAVKAUFKRS"].ToString(); 
                    SResult = Connect2Proxy(or1);
                    break;
                case 14:

                    or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPFARBE FROM ABPOS   "
                        + " WHERE ABPMANDANT=:ABPMANDANT  AND ABPART=:ABPART AND ABPERLKZ=' '";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 15:

                    or1.CommandText = "SELECT DISTINCT P.*,FSABEZ,FSFFBEZ FROM ABPOS P RIGHT JOIN ICC_ABAUFM M "
                        + " ON ABPAUFKRS=M.ABAVKAUFKRS AND ABPAUFLFD=M.ABAVKAUFLFD AND ABPAUFPOS=M.ABAVKAUFPOS "
                        //+ " WHERE ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE AND ABPSPGRD=:ABPSPGRD";
                        + " WHERE P.ABPART=:ABPART AND ABAMANDANT=:ABAMANDANT  AND ABAART=:ABAART AND ABAVAR=:ABAVAR AND ABAFARBE=:ABAFARBE AND ABAGROE=:ABAGROE";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    //or1.Parameters.Add("ABPSPGRD", OracleType.NVarChar).Value = dwData["ABAVKAUFKRS"].ToString(); 
                    SResult = Connect2Proxy(or1);
                    break;
                case 16:
                    string ABPART = dwData["ABPART"].ToString().Trim();

                    or1.CommandText = "SELECT DISTINCT P.*,FSABEZ,FSFFBEZ FROM ABPOS P RIGHT JOIN ICC_ABAUFM M "
                        + " ON ABPAUFKRS=M.ABAVKAUFKRS AND ABPAUFLFD=M.ABAVKAUFLFD AND ABPAUFPOS=M.ABAVKAUFPOS "
                        + " AND M.ABPART LIKE '" + ABPART + "%'"
                        + " WHERE ABAMANDANT=:ABAMANDANT";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 17:

                    or1.CommandText = "SELECT DISTINCT ABPAUFKRS||ABPAUFLFD AS ABPAUF,ABPMANDANT,ABPAUFKRS,ABPAUFLFD,ABPTP FROM ABPOS P  "
                        + " WHERE ABPMANDANT=:ABPMANDANT"
                          + " AND ABPART LIKE '" + dwData["ABPART"].ToString().Trim() + "%'";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 18:

                    or1.CommandText = "SELECT DISTINCT P.*,FSABEZ,FSFFBEZ,FSPROGRP AS ABPKPROGRP,FSARTGRP AS ABPKARTGRP FROM ABPOS P "
                    + " JOIN FSSTAMM M  ON ABPART=M.FSART "
                    + " JOIN FSFARBEN F  ON ABPART=F.FSFART AND ABPFARBE=F.FSFFARBE"
                    + " WHERE  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD"
                    + " ORDER BY ABPAUFPOS";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 19:
                    or1.CommandText = "SELECT MAX(ABPAUFPOS) AS ABPAUFPOS FROM ABPOS  "
                   + " WHERE  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 20:

                    or1.CommandText = "SELECT DISTINCT FSARTPRGR,P.ABPMANDANT, P.ABPART,P.ABPFARBE,P.ABPAUFKRS,P.ABPAUFLFD,MIN(P.ABPAUFPOS) AS ABPAUFPOS"
                    + ",MIN(FSABEZ) AS FSABEZ,MIN(FSFFBEZ)  AS FSFFBEZ FROM ABPOS P JOIN ICC_ABAUFM M "
                        + " ON ABPAUFKRS=M.ABAVKAUFKRS AND ABPAUFLFD=M.ABAVKAUFLFD AND ABPAUFPOS=M.ABAVKAUFPOS "
                        + " AND P.ABPART LIKE '" + dwData["ABPART"].ToString().Trim() + "%'"
                        + " WHERE ABAAUFTYP='N' AND FSSZUSCHN='J'"
                        + " GROUP BY  ABPMANDANT,M.FSARTPRGR,P.ABPART,P.ABPFARBE,P.ABPAUFKRS,P.ABPAUFLFD"
                        + " ORDER BY ABPART,ABPAUFLFD";
                    SResult = Connect2Proxy(or1);
                    break;
                case 21:

                    or1.CommandText = "SELECT * FROM ("
                        + "SELECT DISTINCT ABPAUFLFD,ABPART, WDART AS MART FROM WDECK D  JOIN ABPOS"
                        + " ON WDAUFKRS=ABPAUFKRS"
                        + " AND WDAUFLFD=ABPAUFLFD AND WDAUFPOS=ABPAUFPOS"
                        + " WHERE ABPSPGRD<='89'"
                        + " UNION ALL"
                        + "SELECT DISTINCT ABPAUFLFD,ABPART, FDART AS MART FROM FDECK D  JOIN ABPOS"
                        + " ON FDAUFKRS=ABPAUFKRS"
                        + " AND FDAUFLFD=ABPAUFLFD AND FDAUFPOS=ABPAUFPOS"
                        + " WHERE ABPSPGRD<='89') A WHERE A.ABPART||MART NOT IN"
                        + " (SELECT FSSART||FSSMART FROM FSSTUELI )"
                        + " ORDER BY 1";
                    SResult = Connect2Proxy(or1);
                    break;
                case 22:

                    or1.CommandText = "SELECT DISTINCT FSSART,FSSMART FROM FSSTUELI"
                        + " WHERE FSSART||FSSMART NOT IN"
                        + "  (SELECT ABPART||WDART FROM WDECK D  JOIN ABPOS"
                        + " ON WDAUFKRS=ABPAUFKRS"
                        + " AND WDAUFLFD=ABPAUFLFD AND WDAUFPOS=ABPAUFPOS"
                        + " WHERE ABPSPGRD<='89'"
                        + " UNION ALL"
                        + "SELECT DISTINCT ABPART||FDART FROM FDECK D  JOIN ABPOS"
                        + " ON FDAUFKRS=ABPAUFKRS"
                        + " AND FDAUFLFD=ABPAUFLFD AND FDAUFPOS=ABPAUFPOS"
                        + " WHERE ABPSPGRD<='89')";
                    SResult = Connect2Proxy(or1);
                    break;
                case 23:

                    or1.CommandText = "SELECT * FROM ABPOS WHERE  "
                    + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD AND ABPART=:ABPART AND ABPFARBE=:ABPFARBE";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    or1.Parameters.Add("ABPFARBE", OracleType.NVarChar).Value = dwData["ABPFARBE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 24:
                    or1.CommandText = "SELECT * FROM ABPOS WHERE  "
                    + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS AND ABPAUFLFD=:ABPAUFLFD AND ABPART=:ABPART AND ABPFARBE=:ABPFARBE";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    or1.Parameters.Add("ABPFARBE", OracleType.NVarChar).Value = dwData["ABPFARBE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 25:
                    SResult = QABP25(dwData);
                    break;
                case 26:
                    or1.CommandText = "SELECT DISTINCT ABPWAKZ,ABPMANDANT,ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPTP FROM ABPOS P"
                        + " WHERE ABPMANDANT=:ABPMANDANT  AND ABPART=:ABPART AND ABPFARBE=:ABPFARBE ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    or1.Parameters.Add("ABPFARBE", OracleType.NVarChar).Value = dwData["ABPFARBE"].ToString();
                    SResult = Connect2Proxy(or1);
                    break;
                case 27:
                    or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPANRKR,ABPTP FROM ICC_ABAX X JOIN ABPOS M ON ABAAUFKRS=ABPAUFKRS AND ABAAUFLFD=ABPAUFLFD AND ABAAUFPOS=ABPAUFPOS "
                    + " WHERE X.EXART LIKE '" + dwData["ABPART"].ToString() + "%'";
                    SResult = Connect2Proxy(or1);
                    break;
                case 28:
                    or1.CommandText = "SELECT DISTINCT ABPWAKZ,ABPMANDANT,ABPAUFKRS,ABPAUFLFD,ABPAUFPOS FROM ABPOS P JOIN ABKOPF ON ABPAUFKRS=ABKAUFKRS AND ABKAUFLFD=ABPAUFLFD"
                        + " WHERE ABKMANDANT=:ABKMANDANT:  AND SUBSTR(ABKKDAUFTNR,1,7)=:ABPART: AND SUBSTR(ABKKDAUFTNR,8) LIKE '%" + dwData["ABPFARBE"].ToString().Trim() + "%'";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    SResult = Connect2Proxy(or1);
                    break;
                case 29:
                    or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPTP FROM ABPOS WHERE  "
                    + "  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    SResult = Connect2Proxy(or1);
                    break;
                case 30:
                    or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPTP FROM ABPOS WHERE  "
                    + "  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    SResult = Connect2Proxy(or1);
                    break;
                case 31:
                    SResult = QABP31(dwData);

                    break;
                case 32:
                    or1.CommandText = "SELECT DISTINCT 'V' AS ABAAUFTYP,ABPAUFART,ABPAUFKRS AS ABAAUFKRS ,ABPAUFLFD AS ABAAUFLFD,ABPAUFPOS AS ABAAUFPOS, ABPSOLLMENGE1*10 AS ABARESMG,'V' AS ABAVKAUFTYP, ABPAUFKRS AS ABAVKAUFKRS,ABPAUFLFD AS  ABAVKAUFLFD,ABPAUFPOS AS  ABAVKAUFPOS,'00' AS ABAVKUPOS,ABPTP FROM ABPOS"
                    + " WHERE ABPAUFART=:ABPAUFART: AND ABPART=:ABPART: AND ABPVAR=:ABPVAR: AND ABPFARBE=:ABPFARBE:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    SResult = Connect2Proxy(or1);
                    break;
                case 33:
                    or1.CommandText = "SELECT DISTINCT 'V' AS ABAAUFTYP,ABPAUFART,ABPAUFKRS AS ABAAUFKRS ,ABPAUFLFD AS ABAAUFLFD,ABPAUFPOS AS ABAAUFPOS, ABPSOLLMENGE1*10 AS ABARESMG,'V' AS ABAVKAUFTYP, ABPAUFKRS AS ABAVKAUFKRS,ABPAUFLFD AS  ABAVKAUFLFD,ABPAUFPOS AS  ABAVKAUFPOS,'00' AS ABAVKUPOS FROM ABPOS"
                    + " WHERE ABPAUFART=:ABPAUFART:  AND ABPFARBE LIKE '" + dwData["ABPFARBE"].ToString() + "%'";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    SResult = Connect2Proxy(or1);
                    break;
                case 34:
                    or1.CommandText = "SELECT DISTINCT A.ABPAUFKRS,A.ABPAUFLFD,A.ABPAUFPOS,A.ABPART,A.ABPFARBE,"
                                     + " STRAGG(TRIM(TXTKTEXT))OVER(PARTITION BY A.ABPAUFKRS,A.ABPAUFLFD,A.ABPAUFPOS,A.ABPART,A.ABPFARBE ) AS GY,"
                                     + " '' AS TXT010,'' AS TXT020,'' AS TXT030,'' AS TXT040,'' AS TXT050,'' AS TXT060,'' AS TXT070,'' AS TXT080,'' AS TXT090,'' AS TXT100"
                                     + " FROM ABPOS A,TXTIND T1,TXTKON T2"
                                     + " WHERE A.ABPMANDANT = T1.TXTIMANDANT"
                                     + " AND A.ABPAUFKRS||A.ABPAUFLFD||A.ABPAUFPOS = TRIM(T1.TXTISIND)"
                                     + " AND T1.TXTIMANDANT = T2.TXTKMANDANT"
                                     + " AND T1.TXTIPIND = T2.TXTKPIND"
                                     + " AND A.ABPAUFART ='VW'"
                                     + " AND T1.TXTITXTART = 'ABP'"
                                     + " AND A.ABPART LIKE '" + dwData["ABPART"].ToString().Trim() + "%'";
                    SResult = Connect2Proxy(or1);
                    break;
                case 99:
                    SResult = QABP99(dwData);
                    break;
                default:
                    or1.CommandText = "SELECT * FROM ABPOS WHERE  "
                    + "  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    SResult = Connect2Proxy(or1);
                    break;
            }


            SResult.Tables[0].TableName = "ABPOS";
            return SResult;
        }
        public DataSet QABP01(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ' ' AS VKPEXAUFKRS,' ' AS VKPEXAUFLFD,' ' AS VKPEXAUFPOS, P.* FROM ABPOS P WHERE  "
                  + "  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABP25(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT * FROM ABPOS WHERE ABPAUFLFD>=:ABPAUFLFD: AND ABPART=:ABPART: AND ABPFARBE=:ABPFARBE: ";
            //or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABP251(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ' ' AS VKPEXAUFKRS,' ' AS VKPEXAUFLFD,' ' AS VKPEXAUFPOS, P.* FROM ABPOS P WHERE ABPAUFLFD>=:ABPAUFLFD: AND ABPART=:ABPART: AND ABPFARBE=:ABPFARBE: " + dwData["ABPAUFKRS"].ToString();
            //or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABP31(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ABKAUFART,ABPWAKZ,ABPAUFART,ABPPOSTYP, ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPVAR,ABPFARBE,ABPBESCHICH, ABPDESS,ABPCOLORIT,ABPRESKG,ABPZUGET, ABPZUGKG,ABPSOLLMENGE5,ABPSOLLMENGE7, ABPERLKZ,ABPERLDAT,ABPEALFM,ABPEAKG,ABPSTARTDAT,ABPENDDAT,ABPERLDAT,ABPERLKZ,ABPSTARTDATN,ABPLIEFDATN "
                + " FROM ABPOS JOIN ABKOPF ON ABKMANDANT=ABPMANDANT AND ABPAUFKRS=ABKAUFKRS AND ABPAUFLFD=ABKAUFLFD "
                + " WHERE   ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:"
                 + " ORDER BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABK(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS, WDPRART AS PRART,WDPRVAR AS PRVAR,WDFARBE AS FARBE FROM ABPOS"
                + " JOIN WDECK ON WDMANDANT=ABPMANDANT AND WDAUFKRS=ABPAUFKRS AND WDAUFLFD=ABPAUFLFD AND WDAUFPOS=ABPAUFPOS AND WDTYP='B'"
                + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABKTP(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS, WDPRART AS PRART,WDPRVAR AS PRVAR,WDFARBE AS FARBE FROM ABPOS"
                + " JOIN WDECK ON WDMANDANT=ABPMANDANT AND WDAUFKRS=ABPAUFKRS AND WDAUFLFD=ABPAUFLFD AND WDAUFPOS=ABPAUFPOS AND WDTYP='B'"
                + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD:"
                + dwData["ABPBESCHICH"].ToString();
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABP35(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPVAR,ABPFARBE,ABPSOLLMENGE1,ABPBESCHICH,ABPDESS,ABPCOLORIT,ABPEALFM,ABPERLKZ,ABPERLDAT,ABPNEUDAT FROM ABPOS P "
                      + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPWAKZ=:ABPWAKZ: AND ABPART=:ABPART: AND ABPVAR=:ABPVAR: AND ABPFARBE=:ABPFARBE: AND ABPBESCHICH=:ABPBESCHICH: AND ABPDESS=:ABPDESS: AND ABPCOLORIT=:ABPCOLORIT:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP36(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT P.ABPAUFKRS,P.ABPAUFLFD,P.ABPAUFPOS,P.ABPSOLLMENGE5,P.ABPERLKZ,P.ABPEAKG,P.ABPERLDAT,P.ABPNEUDAT FROM ABPOS P "
                + " JOIN GAAUF G ON GAMANDANT=P.ABPMANDANT AND GAART=P.ABPART AND GAVAR=P.ABPVAR AND GAFARBE=P.ABPFARBE "
                + " JOIN ABPOS X ON GAMANDANT=X.ABPMANDANT AND X.ABPAUFKRS=G.GAAUFKRS AND X.ABPAUFLFD=G.GAAUFLFD AND X.ABPAUFPOS=G.GAAUFPOS"
                      + " WHERE X.ABPMANDANT=:ABPMANDANT: AND X.ABPAUFKRS=:ABPAUFKRS: AND X.ABPAUFLFD=:ABPAUFLFD: AND X.ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP37(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT P.ABPAUFKRS,P.ABPAUFLFD,P.ABPAUFPOS,P.ABPART,P.ABPVAR,P.ABPFARBE, P.ABPSOLLMENGE5,P.ABPERLKZ,P.ABPEAKG,P.ABPERLDAT,P.ABPNEUDAT FROM ABPOS P "
                   + " JOIN GAAUF G ON GAMANDANT=P.ABPMANDANT AND GAART=P.ABPART AND GAVAR=P.ABPVAR AND GAFARBE=P.ABPFARBE "
                    + " JOIN ABPOS X ON GAMANDANT=X.ABPMANDANT AND X.ABPAUFKRS=G.GAAUFKRS AND X.ABPAUFLFD=G.GAAUFLFD AND X.ABPAUFPOS=G.GAAUFPOS"
                    + " WHERE P.ABPAUFKRS=:ABPAUFKRS: AND X.ABPMANDANT=:ABPMANDANT: AND X.ABPWAKZ=:ABPWAKZ: AND X.ABPART=:ABPART: AND X.ABPVAR=:ABPVAR: AND X.ABPFARBE=:ABPFARBE: AND X.ABPBESCHICH=:ABPBESCHICH: AND X.ABPDESS=:ABPDESS: AND X.ABPCOLORIT=:ABPCOLORIT:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }

        public DataSet QABP38(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ABPWAKZ,ABPAUFART,ABPPOSTYP, ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPVAR,ABPFARBE,ABPBESCHICH, ABPRESKG,ABPZUGET, ABPZUGKG,ABPSOLLMENGE1,ABPSOLLMENGE2,ABPSOLLMENGE3,ABPSOLLMENGE4,ABPSOLLMENGE5,ABPSOLLMENGE7,ABPSOLLMENGE8, ABPERLKZ,ABPERLDAT,ABPEALFM,ABPEAKG,ABPSTARTDAT,ABPENDDAT,ABPERLDAT,ABPERLKZ,ABPSTARTDATN,ABPLIEFDATN FROM ABPOS WHERE  "
                 + "  ABPMANDANT=:ABPMANDANT:  "
                 + dwData["ABPAUFKRS"].ToString()
                 + dwData["ABPAUFLFD"].ToString()
                 + dwData["ABPAUFPOS"].ToString()
                 + dwData["ABPERLKZ"].ToString()
                 + dwData["ABPFILLER1"].ToString()
                 + " ORDER BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP39(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "select gsgarnbez,GSHANDLNR,b.abkkdauftnr,a.abpaufkrs||'-'||to_number(a.abpauflfd)||'-'||to_number(a.abpaufpos) as orderno, "
                + " '*'||a.abpaufkrs||a.abpauflfd||a.abpaufpos||'*' as ord, "
                + " (SELECT MAX(TRIM(M.AMBDEMA)) FROM ABFOLGE F,AMSTAMM M WHERE F.ABFMANDANT = M.AMMANDANT AND F.ABFMNRKRS = M.AMNRKRS AND F.ABFMLFDNR = M.AMLFDNR "
                + " AND F.ABFMPOS = M.AMPOS AND F.ABFMANDANT =a.abpmandant  AND F.ABFAUFKRS =a.abpaufkrs AND F.ABFAUFLFD =a.abpauflfd AND F.ABFAUFPOS = a.abpaufpos AND ABFKST = '0260') AS MACHINE, "
                + " (select trim(substr(sddaten,2,20)) from sddat where sdsa = '0354' and sdkey like a.abpmandant||a.abpzaufm||'%V') as typ, "
                + " a.abpart,a.abpfarbe,g.gscbez,a.abpsollmenge5*0.01 as qty,a.abpsollmenge7*0.01 as bobin, "
                + " (select trim(substr(sddaten,2,20)) from sddat where sdsa = '0296' and sdkey like a.abpmandant||a.abpfbmustr||'%') as bm, "
                + " (select trim(substr(sddaten,2,20)) from sddat where sdsa = '8881' and sdkey like a.abpmandant||substr(a.abpartex,1,20)||'%V') as meth, "
                + " (select trim(substr(sddaten,2,20)) from sddat where sdsa = '8882' and sdkey like a.abpmandant||substr(a.abpartex,30,20)||'%V') as fin, "
                + " a.abpliefdat,(select stragg(distinct trim(l.glbem)||'-'||trim(z.zusppart)) from zutei z,gllg l  "
                + " where z.zumandant = l.glmandant and z.zupartie = l.glpartie and z.zupartiekz = l.glpartiekz and z.zulbehi = l.gllbehi  "
                + " and z.zumandant = a.abpmandant and z.zuaufkrs=a.abpaufkrs and z.zuauflfd = a.abpauflfd and z.zuaufpos = a.abpaufpos) as spart, "
                + " (select STRAGG(TRIM(T2.TXTKTEXT)) from txtind t1,txtkon t2 WHERE t1.txtimandant = t2.txtkmandant and t1.txtipind = t2.txtkpind "
                + " and t1.txtisind like a.abpaufkrs||a.abpauflfd||a.abpaufpos||'%' AND T1.TXTITXTART='ABP') AS REMARK "
                + " from abpos a,abkopf b,gscolor g,GSDAT GS "
                + " where a.abpmandant = b.abkmandant and a.abpaufkrs = b.abkaufkrs "
                + " and a.abpauflfd = b.abkauflfd "
                + " AND GSMANDANT=ABPMANDANT AND  GS.GSART=ABPART AND GSVAR=ABPVAR"
                + " and a.abpmandant = g.gscmandant and a.abpart = g.gscart "
                + " and a.abpvar = g.gscvar and a.abpfarbe = g.gscfarbe "
                + " AND ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS: "
                 ;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP40(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPVAR,ABPFARBE,ABPSOLLMENGE1,ABPBESCHICH,ABPDESS,ABPCOLORIT,ABPEALFM*0.5 AS ABPEALFM,ABPERLKZ,ABPERLDAT,ABPNEUDAT FROM ABPOS P "
                      + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPWAKZ=:ABPWAKZ: AND ABPART=:ABPART: AND ABPVAR=:ABPVAR: AND ABPFARBE=:ABPFARBE: AND ABPBESCHICH=:ABPBESCHICH: AND ABPDESS=:ABPDESS: AND ABPCOLORIT=:ABPCOLORIT:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP41(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS, WBBTP,SUM(WBBISTKLG*0.001) AS LG,COUNT(*) AS PCS FROM ABPOS P "
                + " JOIN WBBST ON WBBMANDANT=ABPMANDANT AND WBBAUFTYP='V' AND ABPAUFKRS=WBBAUFKRS AND ABPAUFLFD=WBBAUFLFD AND ABPAUFPOS=WBBAUFPOS"
                      + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:"
                        + " GROUP BY ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,WBBTP  ORDER BY WBBTP ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }

        public DataSet QABP42(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPVAR,ABPFARBE, "
                    + " ABPBESCHICH,ABPSOLLMENGE1*0.01 AS QTY,ABPSTARTDATA,ABPENDDATA,ABPANRKR,ABPALFDNR,TRIM(B.APKSPEZIF) AS BEZ "
                    + " FROM ABPOS A,APKOPF B "
                    + " WHERE ABPAUFKRS = :ABPAUFKRS: AND ABPAUFLFD =:ABPAUFLFD: "
                    + " AND A.ABPMANDANT = B.APKMANDANT AND A.ABPANRKR = B.APKANRKRS AND A.ABPALFDNR = B.APKALFDNR "
                    + " ORDER BY ABPAUFPOS "
                    ;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP43(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "select ABPAUFKRS,ABPAUFLFD,ABPAUFPOS, "
                + " ABPAUFKRS||'-'||to_number(ABPAUFLFD)||'-'||to_number(ABPAUFPOS) as ORDERNO, "
                + " TRIM(ABPART)||'-'||TRIM(ABPFARBE)||'-'||TRIM(ABPBESCHICH) AS ART, "
                + " ABPSOLLMENGE1*0.01 as QTY, "
                + " ABPSTARTDATA,ABPENDDATA,ABPANRKR,ABPALFDNR "
                + " from abpos "
                + " where TRIM(abpart) = '" + dwData["ART"].ToString().Trim() + "' AND TRIM(abpfarbe) = '" + dwData["FARBE"].ToString().Trim() + "' "
                + " AND ABPVAR = '" + dwData["VAR"].ToString() + "' and TRIM(abpbeschich) = '" + dwData["FARBE"].ToString().Trim() + "' "
                //+ " AND (ABPAUFKRS||'-'||ABPAUFLFD||'-'||ABPAUFPOS <> '" + KRS + "-" + LFD +"-" + POS + "' "
                //+ "  OR '" + KRS + "-" + LFD + "-" + POS + "' = 'AA-000000-000') "
                + " ORDER BY 1,2,3 "
                ;
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }

        public DataSet QABP44(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT QPZPNRKRS,QPZPLFDNR,ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPTP,ABPART,ABPFARBE,V.VAABRTBIS*0.01-1||'~'||V.VAABRTBIS*0.01 AS WID,'' AS WBBTP,TRIM(P.ABPART)||'-'||TRIM(P.ABPFARBE) AS ARTICLE, "
                + " (SELECT  TRIM(SUBSTR(SDDATEN,2,40)) FROM SDDAT WHERE SDSA = '0275' AND SDKEY LIKE F.WAFMANDANT||F.WAFRUESTGRP||'%') AS FIN, "
                + " (S.QPSNSWERT*0.001+S.QPSNSUG*0.001)||'~'||(S.QPSNSWERT*0.001+S.QPSNSOG*0.001) AS TRA, "
                + " (SELECT TRIM(SUBSTR(SDDATEN,2,20)) FROM SDDAT WHERE SDSA = '0178' AND SDKEY LIKE V.VAAMANDANT||V.VAAARTGRP||'%V') AS ART, "
                + " (SELECT STRAGG(TRIM(TXTKTEXT)) FROM TXTIND T1,TXTKON T2  "
                + " WHERE T1.TXTIMANDANT = T2.TXTKMANDANT AND T1.TXTIPIND = T2.TXTKPIND  "
                + " AND TXTITXTART = 'VAD' AND TXTISIND LIKE V.VAAKOLL||V.VAAART||'%') AS DES "
                + " FROM ABPOS P,WAFARBEN F,VAART V,QPZUORD Q,QPSTEP S,QPMERKM E "
                + " WHERE ABPMANDANT = :ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS: "
                + " AND P.ABPMANDANT=F.WAFMANDANT AND P.ABPART =F.WAFART AND P.ABPBESCHICH = F.WAFZUSATZ AND F.WAFZUART = 'B'  "
                + " AND P.ABPMANDANT = V.VAAMANDANT AND P.ABPART = V.VAADART "
                + " AND P.ABPMANDANT = Q.QPZMANDANT AND P.ABPART = Q.QPZART AND Q.QPZARTST = 'F' "
                + " AND Q.QPZMANDANT = S.QPSMANDANT AND Q.QPZPNRKRS = S.QPSPNRKRS "
                + " AND Q.QPZPLFDNR = S.QPSPLFDNR AND S.QPSMANDANT = E.QPMMANDANT "
                + " AND S.QPSMERKM = E.QPMMERKM AND E.QPMKURZB = 'ËõË®ÂÊ¾­Ïò          '"
                ;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP45(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT ABPAUFKRS,ABPAUFLFD,ABPAUFPOS,ABPART,ABPVAR,ABPFARBE,ABPBESCHICH,QTY,ABPSTARTDATA,ABPENDDATA,ABPANRKR, ABPALFDNR,BEZ,DESCR,ARTNAME,FIN,TRA"
                + " FROM (SELECT (SELECT substr(sddaten, 2, 20) from sddat S where sdsa = '0178' and substr(sdkey, 24, 1) = 'V' and substr(sddaten, 1, 1) = 'A' and substr(sdkey, 3, 3) = VAAARTGRP)"
                + " AS ARTNAME,TRIM(B.APKSPEZIF) AS BEZ,ABPAUFKRS, ABPAUFLFD,ABPAUFPOS,ABPART, ABPVAR, ABPFARBE,ABPBESCHICH,ABPSOLLMENGE1 * 0.01 AS QTY, ABPSTARTDATA,ABPENDDATA,ABPANRKR,ABPALFDNR,"
                + " (SELECT TRIM(SUBSTR(SDDATEN, 2, 40)) FROM SDDAT WHERE SDSA = '0275' AND SDKEY LIKE F.WAFMANDANT || F.WAFRUESTGRP || '%') AS FIN,"
                + " (S.QPSNSWERT * 0.001 + S.QPSNSUG * 0.001) || '~' || (S.QPSNSWERT * 0.001 + S.QPSNSOG * 0.001) AS TRA,"
                + " (select nvl(TRIM(T2.TXTKTEXT), VAABEZ) from txtind T1, TXTKON T2 where T1.txtitxtart = 'VAD' AND T1.TXTIMANDANT = T2.TXTKMANDANT AND T1.TXTIPIND = T2.TXTKPIND          AND TRIM(T1.TXTISIND) = V.vaakoll || trim(V.vaaart)) AS DESCR "
                + " FROM ABPOS A, APKOPF B,VAART V,VKPOS K,WAFARBEN F, QPZUORD Q, QPSTEP S, QPMERKM E"
                + " WHERE ABPAUFKRS =:ABPAUFKRS: AND ABPAUFLFD = :ABPAUFLFD: AND A.ABPMANDANT = B.APKMANDANT  AND A.ABPANRKR = B.APKANRKRS  AND A.ABPALFDNR = B.APKALFDNR"
                + " AND TRIM(A.ABPART)=TRIM(K.VKPART) AND A.ABPMANDANT=K.VKPMANDANT AND TRIM(A.ABPFARBE)=TRIM(K.VKPFARBE) AND K.VKPSA='  '  AND K.VKPMANDANT =V.VAAMANDANT  AND K.VKPKOLL = V.VAAKOLL  AND K.VKPART = V.VAAART  AND A.ABPMANDANT = F.WAFMANDANT"
                + " AND A.ABPART = F.WAFART AND A.ABPBESCHICH = F.WAFZUSATZ AND F.WAFZUART = 'B' AND A.ABPMANDANT = Q.QPZMANDANT AND A.ABPART = Q.QPZART AND Q.QPZARTST = 'F' AND Q.QPZMANDANT = S.QPSMANDANT"
                + " AND Q.QPZPNRKRS = S.QPSPNRKRS AND Q.QPZPLFDNR = S.QPSPLFDNR AND S.QPSMANDANT = E.QPMMANDANT AND S.QPSMERKM = E.QPMMERKM AND E.QPMKURZB = 'ËõË®ÂÊ¾­Ïò          ')"
                + " ORDER BY ABPAUFPOS";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QAB46(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT A.ABAAUFKRS AS ABPAUFKRS,A.ABAAUFLFD AS ABPAUFLFD,A.ABAAUFPOS AS ABPAUFPOS,A.ABAAPOS,B.ABPART,"
              + "  B.ABPFARBE,TRIM(C.GSCBEZ) AS GSCBEZ,B.ABPSOLLMENGE5*0.01 AS ABPSOLLMENGE5 ,B.ABPSOLLMENGE7*0.01 AS ABPSOLLMENGE7,trim(A.ABAKDAUFTNR) AS ABAKDAUFTNR,TRIM(A.ABAKDPARTIE) AS ABAKDPARTIE,"
              + "  SUBSTR(A.ABABEM2,0,INSTR(A.ABABEM2,'*',1)-1) AS ABABEM1,TRIM(SUBSTR(A.ABABEM2,INSTR(A.ABABEM2,'*',1)+1)) AS ABABEM2 ,A.ABAVERSDAT,D.GPEINBRUT*0.01 AS ABPZUGSTK  FROM ABAUFM A"
              + "  left join ABPOS B ON  A.ABAAUFKRS=B.ABPAUFKRS AND A.ABAAUFLFD=B.ABPAUFLFD AND A.ABAAUFPOS=B.ABPAUFPOS"
              + "  LEFT JOIN GSCOLOR C ON B.ABPART=C.GSCART AND B.ABPFARBE=C.GSCFARBE"
              + "  LEFT JOIN GPDAT D ON A.ABAAUFKRS=D.GPBESTKRS AND A.ABAAUFLFD=D.GPBESTLFD AND A.ABAAUFPOS=D.GPBESTPOS AND A.ABAAPOS=D.GPPOSA"
              + "  WHERE A.ABAVERSDAT BETWEEN '" + dwData["ABPSTARTDAT"] + "' AND '" + dwData["ABPENDDAT"] + "' AND B.ABPAUFKRS='RS' AND B.ABPFARBE LIKE'" + dwData["ABPFARBE"] + "%'"
                        + " ORDER BY ABPFARBE";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QAB47(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT A.ABAAUFKRS AS ABPAUFKRS,A.ABAAUFLFD AS ABPAUFLFD,A.ABAAUFPOS AS ABPAUFPOS,A.ABAAPOS,B.ABPART,"
              + "  B.ABPFARBE,C.GSCBEZ,B.ABPSOLLMENGE5*0.01 AS ABPSOLLMENGE5,B.ABPSOLLMENGE7*0.01 AS ABPSOLLMENGE7,A.ABAKDAUFTNR,A.ABAKDPARTIE,"
              + "  SUBSTR(A.ABABEM2,0,INSTR(A.ABABEM2,'*',1)-1) AS ABABEM1,SUBSTR(A.ABABEM2,INSTR(A.ABABEM2,'*',1)+1) AS ABABEM2 ,A.ABAVERSDAT,D.GPEINBRUT*0.01 AS ABPZUGSTK  FROM ABAUFM A"
              + "  left join ABPOS B ON  A.ABAAUFKRS=B.ABPAUFKRS AND A.ABAAUFLFD=B.ABPAUFLFD AND A.ABAAUFPOS=B.ABPAUFPOS"
              + "  LEFT JOIN GSCOLOR C ON B.ABPART=C.GSCART AND B.ABPFARBE=C.GSCFARBE"
              + "  LEFT JOIN GPDAT D ON A.ABAAUFKRS=D.GPBESTKRS AND A.ABAAUFLFD=D.GPBESTLFD AND A.ABAAUFPOS=D.GPBESTPOS AND A.ABAAPOS=D.GPPOSA"
              + "  WHERE A.ABAAUFKRS='" + dwData["ABPAUFKRS"] + "' AND A.ABAAUFLFD='" + dwData["ABPAUFLFD"] + "' AND A.ABAAUFPOS='" + dwData["ABPAUFPOS"] + "'";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }

        public DataSet QABP48(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT * FROM ABPOS WHERE  "
                  + "  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPPOSTYP='HM '";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABP99(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT * FROM ABPOS WHERE  "
                   + "  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QABP49(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "select  abpmandant from abpos JOIN ABAUFM "
                       + " ON ABAAUFKRS=ABPAUFKRS"
                       + " AND ABAAUFLFD=ABPAUFLFD"
                       + " AND ABAAUFPOS=ABPAUFPOS"
                       + " AND ABAVKAUFLFD!='000000'"
                       + " where ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS = :ABPAUFKRS: AND ABPAUFLFD =:ABPAUFLFD: ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }

        public DataSet QABP50(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT SUBSTR(APKSPEZIF, 0, 2) AS WFZZ"
                      + " FROM ABPOS JOIN APKOPF ON ABPANRKR = APKANRKRS AND ABPALFDNR = APKALFDNR"
                      + " WHERE ABPAUFKRS =:ABPAUFKRS: AND ABPAUFLFD =:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:"; 
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;

        }
        public DataSet QAB04FN(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT DISTINCT ABPAUFKRS,ABPAUFLFD,ABPART,ABPBESCHICH,max(ROWNUM)*1000 AS TPSTART,MAX(ABPTP)  AS ABPTP FROM ABPOS"
              + "  WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS='" + dwData["ABPAUFKRS"] + "' AND ABPAUFLFD='" + dwData["ABPAUFLFD"] + "'"
              + dwData["ABPBESCHICH"].ToString()
              + " GROUP BY ABPAUFKRS,ABPAUFLFD,ABPART,ABPBESCHICH"
              + " ORDER BY ABPBESCHICH";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        public DataSet QABKDPARTIE(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "SELECT * FROM ABPOS"
              + "  WHERE ABPMANDANT=:ABPMANDANT: AND ABPPOSTYP=:ABPPOSTYP: AND ABPKDPARTIE=:ABPKDPARTIE:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            SResult = Connect2Proxy(or1);
            SResult.Tables[0].TableName = TableName;
            return SResult;
        }
        
        public void SaveABPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            DataSet setResult = new DataSet();
            DataTable tbLocal = null;
            DataRow dwLocal = null;
            bool flgExist = false;
            setResult = QueryABPOS(dwData);
            if (setResult.Tables.Count > 0)
            {
                tbLocal = setResult.Tables[0];
                if (tbLocal.Rows.Count > 0)
                {
                    flgExist = true;
                    dwLocal = tbLocal.Rows[0];
                }
                else
                {
                    dwLocal = tbLocal.NewRow();
                }
            }
            MapABPOS(ref dwLocal, dwData);

            if (!flgExist)
            {

                InsertABPOS(dwLocal, ITXDBVERSION);
            }
            UpdateABPOS(dwLocal, "YGR");
        }

        public void UpdateABPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "YGR":
                default:
                    #region=====Part1=======
                    or1.CommandText = "UPDATE ABPOS SET "
           + "ABPMANDANT=:ABPMANDANT,"
           + "ABPAUFKRS=:ABPAUFKRS,"
           + "ABPAUFLFD=:ABPAUFLFD,"
           + "ABPAUFPOS=:ABPAUFPOS,"
           + "ABPVFAUFKRS=:ABPVFAUFKRS,"
           + "ABPVFAUFLFD=:ABPVFAUFLFD,"
           + "ABPVFAUFPOS=:ABPVFAUFPOS,"
           + "ABPAUFART=:ABPAUFART,"
           + "ABPAUFST=:ABPAUFST,"
           + "ABPAUFSTV=:ABPAUFSTV,"
           + "ABPAUFSTB=:ABPAUFSTB,"
           + "ABPAUTO=:ABPAUTO,"
           + "ABPPRIO=:ABPPRIO,"
           + "ABPTLVF=:ABPTLVF,"
           + "ABPDIVARTKZ=:ABPDIVARTKZ,"
           + "ABPKUNDNR=:ABPKUNDNR,"
           + "ABPWERK=:ABPWERK,"
           + "ABPABT=:ABPABT,"
           + "ABPWAKZ=:ABPWAKZ,"
           + "ABPART=:ABPART,"
           + "ABPVAR=:ABPVAR,"
           + "ABPFARBE=:ABPFARBE,"
           + "ABPDESS=:ABPDESS,"
           + "ABPCOLORIT=:ABPCOLORIT,"
           + "ABPBESCHICH=:ABPBESCHICH,"
           + "ABPGROE=:ABPGROE,"
           + "ABPAUFM=:ABPAUFM,"
           + "ABPVERP=:ABPVERP,"
           + "ABPANZVP=:ABPANZVP,"
           + "ABPFWARTGRA=:ABPFWARTGRA,"
           + "ABPFWARTGRP=:ABPFWARTGRP,"
           + "ABPZLO=:ABPZLO,"
           + "ABPZLB=:ABPZLB,"
           + "ABPBLO=:ABPBLO,"
           + "ABPSME=:ABPSME,"
           + "ABPSOLLMENGE1=:ABPSOLLMENGE1,"
           + "ABPSOLLMENGE2=:ABPSOLLMENGE2,"
           + "ABPSOLLMENGE3=:ABPSOLLMENGE3,"
           + "ABPSOLLMENGE4=:ABPSOLLMENGE4,"
           + "ABPSOLLMENGE5=:ABPSOLLMENGE5,"
           + "ABPSOLLMENGE6=:ABPSOLLMENGE6,"
           + "ABPSOLLMENGE7=:ABPSOLLMENGE7,"
           + "ABPSOLLMENGE8=:ABPSOLLMENGE8,"
           + "ABPRESMGE=:ABPRESMGE,"
           + "ABPRESKG=:ABPRESKG,"
           + "ABPRESSTK=:ABPRESSTK,"
           + "ABPZUGET=:ABPZUGET,"
           + "ABPZUGKG=:ABPZUGKG,"
           + "ABPZUGSTK=:ABPZUGSTK,"
           + "ABPDILFM=:ABPDILFM,"
           + "ABPDIKG=:ABPDIKG,"
           + "ABPDISTK=:ABPDISTK,"
           + "ABPZTLGKOMP=:ABPZTLGKOMP,"
           + "ABPSMGKZZU=:ABPSMGKZZU,"
           + "ABPVLLFM=:ABPVLLFM,"
           + "ABPVLKG=:ABPVLKG,"
           + "ABPVLSTK=:ABPVLSTK,"
           + "ABPEALFM=:ABPEALFM,"
           + "ABPEAKG=:ABPEAKG,"
           + "ABPEASTK=:ABPEASTK,"
           + "ABPEBLFM=:ABPEBLFM,"
           + "ABPEBKG=:ABPEBKG,"
           + "ABPEBSTK=:ABPEBSTK,"
           + "ABPABLFM=:ABPABLFM,"
           + "ABPABKG=:ABPABKG,"
           + "ABPABSTK=:ABPABSTK,"
           + "ABPVSLFM=:ABPVSLFM,"
           + "ABPVSKG=:ABPVSKG,"
           + "ABPVSSTK=:ABPVSSTK,"
           + "ABPRTLFM=:ABPRTLFM,"
           + "ABPRTKG=:ABPRTKG,"
           + "ABPRTSTK=:ABPRTSTK,"
           + "ABPROHWDAT=:ABPROHWDAT,"
           + "ABPKDDAT=:ABPKDDAT,"
           + "ABPWVDAT=:ABPWVDAT,"
           + "ABPLIEFDAT=:ABPLIEFDAT,"
           + "ABPLRUECK=:ABPLRUECK,"
           + "ABPLRDATE=:ABPLRDATE,"
           + "ABPDLR=:ABPDLR,"
           + "ABPVTRUECK=:ABPVTRUECK,"
           + "ABPVTDATE=:ABPVTDATE,"
           + "ABPUNKLAR=:ABPUNKLAR,"
           + "ABPVERSDAT=:ABPVERSDAT,"
           + "ABPFREIDAT=:ABPFREIDAT,"
           + "ABPSTARTDAT=:ABPSTARTDAT,"
           + "ABPENDDAT=:ABPENDDAT,"
           + "ABPSTARTDATA=:ABPSTARTDATA,"
           + "ABPENDDATA=:ABPENDDATA,"
           + "ABPLTERMAK=:ABPLTERMAK,"
           + "ABPBESTDAT=:ABPBESTDAT,"
           + "ABPANRKR=:ABPANRKR,"
           + "ABPALFDNR=:ABPALFDNR,"
           + "ABPAFOLGEV=:ABPAFOLGEV,"
           + "ABPAFOLGEB=:ABPAFOLGEB,"
           + "ABPANRKR2=:ABPANRKR2,"
           + "ABPALFDNR2=:ABPALFDNR2,"
           + "ABPAFOLGEV2=:ABPAFOLGEV2,"
           + "ABPAFOLGEB2=:ABPAFOLGEB2,"
           + "ABPANRKR3=:ABPANRKR3,"
           + "ABPALFDNR3=:ABPALFDNR3,"
           + "ABPAFOLGEV3=:ABPAFOLGEV3,"
           + "ABPAFOLGEB3=:ABPAFOLGEB3,"
           + "ABPANRKR4=:ABPANRKR4,"
           + "ABPALFDNR4=:ABPALFDNR4,"
           + "ABPAFOLGEV4=:ABPAFOLGEV4,"
           + "ABPAFOLGEB4=:ABPAFOLGEB4,"
           + "ABPVERSAEND=:ABPVERSAEND,"
           + "ABPVERSZL=:ABPVERSZL,"
           + "ABPTLFREIG=:ABPTLFREIG,"
           + "ABPTLFMG=:ABPTLFMG,"
           + "ABPFREIGKZ=:ABPFREIGKZ,"
           + "ABPLMAFOLGE=:ABPLMAFOLGE,"
           + "ABPENDAUFM=:ABPENDAUFM,"
           + "ABPZAUFM=:ABPZAUFM,"
           + "ABPLIEFNR=:ABPLIEFNR,"
           + "ABPGESSTA=:ABPGESSTA,"
           + "ABPKDSTA=:ABPKDSTA,"
           + "ABPWSSTA=:ABPWSSTA,"
           + "ABPAPSTA=:ABPAPSTA,"
           + "ABPRZSTA=:ABPRZSTA,"
           + "ABPWPSTA=:ABPWPSTA,"
           + "ABPWBSTA=:ABPWBSTA,"
           + "ABPABSTA=:ABPABSTA,"
           + "ABPERLKZ=:ABPERLKZ,"
           + "ABPERLDAT=:ABPERLDAT,"
           + "ABPBEWKZ=:ABPBEWKZ,"
           + "ABPDRKZ1=:ABPDRKZ1,"
           + "ABPDRKZ2=:ABPDRKZ2,"
           + "ABPDRKZ3=:ABPDRKZ3,"
           + "ABPDRKZ4=:ABPDRKZ4,"
           + "ABPDRKZ5=:ABPDRKZ5,"
           + "ABPDRKZ6=:ABPDRKZ6,"
           + "ABPDRKZ7=:ABPDRKZ7,"
           + "ABPDRKZ8=:ABPDRKZ8,"
           + "ABPDRKZ9=:ABPDRKZ9,"
           + "ABPDRKZ10=:ABPDRKZ10,"
           + "ABPDR1USER=:ABPDR1USER,"
           + "ABPDR1DAT=:ABPDR1DAT,"
           + "ABPDR8USER=:ABPDR8USER,"
           + "ABPDR8DAT=:ABPDR8DAT,"
           + "ABPRETOURZL=:ABPRETOURZL,"
           + "ABPRPCOUNTAK=:ABPRPCOUNTAK,"
           + "ABPURAUFKRS=:ABPURAUFKRS,"
           + "ABPURAUFLFD=:ABPURAUFLFD,"
           + "ABPURAUFPOS=:ABPURAUFPOS,"
           + "ABPASAUFKRS=:ABPASAUFKRS,"
           + "ABPASAUFLFD=:ABPASAUFLFD,"
           + "ABPASAUFPOS=:ABPASAUFPOS,"
           + "ABPREAFOLGE=:ABPREAFOLGE,"
           + "ABPRWKRS=:ABPRWKRS,"
           + "ABPRWLFD=:ABPRWLFD,"
           + "ABPSTKNRKR=:ABPSTKNRKR,"
           + "ABPSERIE=:ABPSERIE,"
           + "ABPAGBKZ=:ABPAGBKZ,"
           + "ABPWAART=:ABPWAART,"
           + "ABPANZSTK=:ABPANZSTK,"
           + "ABPZUGETGES=:ABPZUGETGES,"
           + "ABPSTKKZ=:ABPSTKKZ,"
           + "ABPSTKLG=:ABPSTKLG,"
           + "ABPANZSTKR=:ABPANZSTKR,"
           + "ABPABZKZ=:ABPABZKZ,"
           + "ABPBDEKZ=:ABPBDEKZ,"
           + "ABPSUBSYS=:ABPSUBSYS,"
           + "ABPDATBDE=:ABPDATBDE,"
           + "ABPUHRBDE=:ABPUHRBDE,"
           + "ABPDISPOKZ=:ABPDISPOKZ,"
           + "ABPSCHLICHTE=:ABPSCHLICHTE,"
           + "ABPZZUSATZ=:ABPZZUSATZ,"
           + "ABPZZUSKZ=:ABPZZUSKZ,"
           + "ABPSZUSTAND=:ABPSZUSTAND,"
           + "ABPIZUSTAND=:ABPIZUSTAND,"
           + "ABPSZUSATZKZ1=:ABPSZUSATZKZ1,"
           + "ABPSZUSATZKZ2=:ABPSZUSATZKZ2,"
           + "ABPSZUSATZKZ3=:ABPSZUSATZKZ3,"
           + "ABPSZUSATZKZ4=:ABPSZUSATZKZ4,"
           + "ABPWERKE=:ABPWERKE,"
           + "ABPLBMUSTR=:ABPLBMUSTR,"
           + "ABPFBMUSTR=:ABPFBMUSTR,"
           + "ABPREAUFKRS=:ABPREAUFKRS,"
           + "ABPREAUFLFD=:ABPREAUFLFD,"
           + "ABPREAUFPOS=:ABPREAUFPOS,"
           + "ABPLTVORL=:ABPLTVORL,"
           + "ABPFDZ=:ABPFDZ,"
           + "ABPARTEX=:ABPARTEX,"
           + "ABPLETEILNR=:ABPLETEILNR,"
           + "ABPANSNR=:ABPANSNR,"
           + "ABPUPOS=:ABPUPOS,"
           + "ABPTP=:ABPTP,"
           + "ABPLBDENR=:ABPLBDENR,"
           + "ABPTMCOUNT=:ABPTMCOUNT,"
           + "ABPTMCOUNTAK=:ABPTMCOUNTAK,"
           + "ABPKDPARTIE=:ABPKDPARTIE,"
           + "ABPBAHNKZ=:ABPBAHNKZ,"
           + "ABPGAENGE=:ABPGAENGE,"
           + "ABPZWTWAHL=:ABPZWTWAHL,"
           + "ABPDIVWLFM=:ABPDIVWLFM,"
           + "ABPDIVWKG=:ABPDIVWKG "
           + " WHERE  "
           + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();
                    or1.Parameters.Add("ABPVFAUFKRS", OracleType.NVarChar).Value = dwData["ABPVFAUFKRS"].ToString();
                    or1.Parameters.Add("ABPVFAUFLFD", OracleType.NVarChar).Value = dwData["ABPVFAUFLFD"].ToString();
                    or1.Parameters.Add("ABPVFAUFPOS", OracleType.NVarChar).Value = dwData["ABPVFAUFPOS"].ToString();
                    or1.Parameters.Add("ABPAUFART", OracleType.NVarChar).Value = dwData["ABPAUFART"].ToString();
                    or1.Parameters.Add("ABPAUFST", OracleType.NVarChar).Value = dwData["ABPAUFST"].ToString();
                    or1.Parameters.Add("ABPAUFSTV", OracleType.NVarChar).Value = dwData["ABPAUFSTV"].ToString();
                    or1.Parameters.Add("ABPAUFSTB", OracleType.NVarChar).Value = dwData["ABPAUFSTB"].ToString();
                    or1.Parameters.Add("ABPAUTO", OracleType.NVarChar).Value = dwData["ABPAUTO"].ToString();
                    or1.Parameters.Add("ABPPRIO", OracleType.NVarChar).Value = dwData["ABPPRIO"].ToString();
                    or1.Parameters.Add("ABPTLVF", OracleType.NVarChar).Value = dwData["ABPTLVF"].ToString();
                    or1.Parameters.Add("ABPDIVARTKZ", OracleType.NVarChar).Value = dwData["ABPDIVARTKZ"].ToString();
                    or1.Parameters.Add("ABPKUNDNR", OracleType.NVarChar).Value = dwData["ABPKUNDNR"].ToString();
                    or1.Parameters.Add("ABPWERK", OracleType.NVarChar).Value = dwData["ABPWERK"].ToString();
                    or1.Parameters.Add("ABPABT", OracleType.NVarChar).Value = dwData["ABPABT"].ToString();
                    or1.Parameters.Add("ABPWAKZ", OracleType.NVarChar).Value = dwData["ABPWAKZ"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    or1.Parameters.Add("ABPVAR", OracleType.NVarChar).Value = dwData["ABPVAR"].ToString();
                    or1.Parameters.Add("ABPFARBE", OracleType.NVarChar).Value = dwData["ABPFARBE"].ToString();
                    or1.Parameters.Add("ABPDESS", OracleType.NVarChar).Value = dwData["ABPDESS"].ToString();
                    or1.Parameters.Add("ABPCOLORIT", OracleType.NVarChar).Value = dwData["ABPCOLORIT"].ToString();
                    or1.Parameters.Add("ABPBESCHICH", OracleType.NVarChar).Value = dwData["ABPBESCHICH"].ToString();
                    or1.Parameters.Add("ABPGROE", OracleType.NVarChar).Value = dwData["ABPGROE"].ToString();
                    or1.Parameters.Add("ABPAUFM", OracleType.NVarChar).Value = dwData["ABPAUFM"].ToString();
                    or1.Parameters.Add("ABPVERP", OracleType.NVarChar).Value = dwData["ABPVERP"].ToString();
                    or1.Parameters.Add("ABPANZVP", OracleType.NVarChar).Value = dwData["ABPANZVP"].ToString();
                    or1.Parameters.Add("ABPFWARTGRA", OracleType.NVarChar).Value = dwData["ABPFWARTGRA"].ToString();
                    or1.Parameters.Add("ABPFWARTGRP", OracleType.NVarChar).Value = dwData["ABPFWARTGRP"].ToString();
                    or1.Parameters.Add("ABPZLO", OracleType.NVarChar).Value = dwData["ABPZLO"].ToString();
                    or1.Parameters.Add("ABPZLB", OracleType.NVarChar).Value = dwData["ABPZLB"].ToString();
                    or1.Parameters.Add("ABPBLO", OracleType.NVarChar).Value = dwData["ABPBLO"].ToString();
                    or1.Parameters.Add("ABPSME", OracleType.NVarChar).Value = dwData["ABPSME"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE1", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE1"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE2", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE2"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE3", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE3"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE4", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE4"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE5", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE5"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE6", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE6"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE7", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE7"].ToString();
                    or1.Parameters.Add("ABPSOLLMENGE8", OracleType.NVarChar).Value = dwData["ABPSOLLMENGE8"].ToString();
                    or1.Parameters.Add("ABPRESMGE", OracleType.NVarChar).Value = dwData["ABPRESMGE"].ToString();
                    or1.Parameters.Add("ABPRESKG", OracleType.NVarChar).Value = dwData["ABPRESKG"].ToString();
                    or1.Parameters.Add("ABPRESSTK", OracleType.NVarChar).Value = dwData["ABPRESSTK"].ToString();
                    or1.Parameters.Add("ABPZUGET", OracleType.NVarChar).Value = dwData["ABPZUGET"].ToString();
                    or1.Parameters.Add("ABPZUGKG", OracleType.NVarChar).Value = dwData["ABPZUGKG"].ToString();
                    or1.Parameters.Add("ABPZUGSTK", OracleType.NVarChar).Value = dwData["ABPZUGSTK"].ToString();
                    or1.Parameters.Add("ABPDILFM", OracleType.NVarChar).Value = dwData["ABPDILFM"].ToString();
                    or1.Parameters.Add("ABPDIKG", OracleType.NVarChar).Value = dwData["ABPDIKG"].ToString();
                    or1.Parameters.Add("ABPDISTK", OracleType.NVarChar).Value = dwData["ABPDISTK"].ToString();
                    or1.Parameters.Add("ABPZTLGKOMP", OracleType.NVarChar).Value = dwData["ABPZTLGKOMP"].ToString();
                    or1.Parameters.Add("ABPSMGKZZU", OracleType.NVarChar).Value = dwData["ABPSMGKZZU"].ToString();
                    or1.Parameters.Add("ABPVLLFM", OracleType.NVarChar).Value = dwData["ABPVLLFM"].ToString();
                    or1.Parameters.Add("ABPVLKG", OracleType.NVarChar).Value = dwData["ABPVLKG"].ToString();
                    or1.Parameters.Add("ABPVLSTK", OracleType.NVarChar).Value = dwData["ABPVLSTK"].ToString();
                    or1.Parameters.Add("ABPEALFM", OracleType.NVarChar).Value = dwData["ABPEALFM"].ToString();
                    or1.Parameters.Add("ABPEAKG", OracleType.NVarChar).Value = dwData["ABPEAKG"].ToString();
                    or1.Parameters.Add("ABPEASTK", OracleType.NVarChar).Value = dwData["ABPEASTK"].ToString();
                    or1.Parameters.Add("ABPEBLFM", OracleType.NVarChar).Value = dwData["ABPEBLFM"].ToString();
                    or1.Parameters.Add("ABPEBKG", OracleType.NVarChar).Value = dwData["ABPEBKG"].ToString();
                    or1.Parameters.Add("ABPEBSTK", OracleType.NVarChar).Value = dwData["ABPEBSTK"].ToString();
                    or1.Parameters.Add("ABPABLFM", OracleType.NVarChar).Value = dwData["ABPABLFM"].ToString();
                    or1.Parameters.Add("ABPABKG", OracleType.NVarChar).Value = dwData["ABPABKG"].ToString();
                    or1.Parameters.Add("ABPABSTK", OracleType.NVarChar).Value = dwData["ABPABSTK"].ToString();
                    or1.Parameters.Add("ABPVSLFM", OracleType.NVarChar).Value = dwData["ABPVSLFM"].ToString();
                    or1.Parameters.Add("ABPVSKG", OracleType.NVarChar).Value = dwData["ABPVSKG"].ToString();
                    or1.Parameters.Add("ABPVSSTK", OracleType.NVarChar).Value = dwData["ABPVSSTK"].ToString();
                    or1.Parameters.Add("ABPRTLFM", OracleType.NVarChar).Value = dwData["ABPRTLFM"].ToString();
                    or1.Parameters.Add("ABPRTKG", OracleType.NVarChar).Value = dwData["ABPRTKG"].ToString();
                    or1.Parameters.Add("ABPRTSTK", OracleType.NVarChar).Value = dwData["ABPRTSTK"].ToString();
                    or1.Parameters.Add("ABPROHWDAT", OracleType.NVarChar).Value = dwData["ABPROHWDAT"].ToString();
                    or1.Parameters.Add("ABPKDDAT", OracleType.NVarChar).Value = dwData["ABPKDDAT"].ToString();
                    or1.Parameters.Add("ABPWVDAT", OracleType.NVarChar).Value = dwData["ABPWVDAT"].ToString();
                    or1.Parameters.Add("ABPLIEFDAT", OracleType.NVarChar).Value = dwData["ABPLIEFDAT"].ToString();
                    or1.Parameters.Add("ABPLRUECK", OracleType.NVarChar).Value = dwData["ABPLRUECK"].ToString();
                    or1.Parameters.Add("ABPLRDATE", OracleType.NVarChar).Value = dwData["ABPLRDATE"].ToString();
                    or1.Parameters.Add("ABPDLR", OracleType.NVarChar).Value = dwData["ABPDLR"].ToString();
                    or1.Parameters.Add("ABPVTRUECK", OracleType.NVarChar).Value = dwData["ABPVTRUECK"].ToString();
                    or1.Parameters.Add("ABPVTDATE", OracleType.NVarChar).Value = dwData["ABPVTDATE"].ToString();
                    or1.Parameters.Add("ABPUNKLAR", OracleType.NVarChar).Value = dwData["ABPUNKLAR"].ToString();
                    or1.Parameters.Add("ABPVERSDAT", OracleType.NVarChar).Value = dwData["ABPVERSDAT"].ToString();
                    or1.Parameters.Add("ABPFREIDAT", OracleType.NVarChar).Value = dwData["ABPFREIDAT"].ToString();
                    or1.Parameters.Add("ABPSTARTDAT", OracleType.NVarChar).Value = dwData["ABPSTARTDAT"].ToString();
                    or1.Parameters.Add("ABPENDDAT", OracleType.NVarChar).Value = dwData["ABPENDDAT"].ToString();
                    or1.Parameters.Add("ABPSTARTDATA", OracleType.NVarChar).Value = dwData["ABPSTARTDATA"].ToString();
                    or1.Parameters.Add("ABPENDDATA", OracleType.NVarChar).Value = dwData["ABPENDDATA"].ToString();
                    or1.Parameters.Add("ABPLTERMAK", OracleType.NVarChar).Value = dwData["ABPLTERMAK"].ToString();
                    or1.Parameters.Add("ABPBESTDAT", OracleType.NVarChar).Value = dwData["ABPBESTDAT"].ToString();
                    or1.Parameters.Add("ABPANRKR", OracleType.NVarChar).Value = dwData["ABPANRKR"].ToString();
                    or1.Parameters.Add("ABPALFDNR", OracleType.NVarChar).Value = dwData["ABPALFDNR"].ToString();
                    or1.Parameters.Add("ABPAFOLGEV", OracleType.NVarChar).Value = dwData["ABPAFOLGEV"].ToString();
                    or1.Parameters.Add("ABPAFOLGEB", OracleType.NVarChar).Value = dwData["ABPAFOLGEB"].ToString();
                    or1.Parameters.Add("ABPANRKR2", OracleType.NVarChar).Value = dwData["ABPANRKR2"].ToString();
                    or1.Parameters.Add("ABPALFDNR2", OracleType.NVarChar).Value = dwData["ABPALFDNR2"].ToString();
                    or1.Parameters.Add("ABPAFOLGEV2", OracleType.NVarChar).Value = dwData["ABPAFOLGEV2"].ToString();
                    or1.Parameters.Add("ABPAFOLGEB2", OracleType.NVarChar).Value = dwData["ABPAFOLGEB2"].ToString();
                    or1.Parameters.Add("ABPANRKR3", OracleType.NVarChar).Value = dwData["ABPANRKR3"].ToString();
                    or1.Parameters.Add("ABPALFDNR3", OracleType.NVarChar).Value = dwData["ABPALFDNR3"].ToString();
                    or1.Parameters.Add("ABPAFOLGEV3", OracleType.NVarChar).Value = dwData["ABPAFOLGEV3"].ToString();
                    or1.Parameters.Add("ABPAFOLGEB3", OracleType.NVarChar).Value = dwData["ABPAFOLGEB3"].ToString();
                    or1.Parameters.Add("ABPANRKR4", OracleType.NVarChar).Value = dwData["ABPANRKR4"].ToString();
                    or1.Parameters.Add("ABPALFDNR4", OracleType.NVarChar).Value = dwData["ABPALFDNR4"].ToString();
                    or1.Parameters.Add("ABPAFOLGEV4", OracleType.NVarChar).Value = dwData["ABPAFOLGEV4"].ToString();
                    or1.Parameters.Add("ABPAFOLGEB4", OracleType.NVarChar).Value = dwData["ABPAFOLGEB4"].ToString();
                    or1.Parameters.Add("ABPVERSAEND", OracleType.NVarChar).Value = dwData["ABPVERSAEND"].ToString();
                    or1.Parameters.Add("ABPVERSZL", OracleType.NVarChar).Value = dwData["ABPVERSZL"].ToString();
                    or1.Parameters.Add("ABPTLFREIG", OracleType.NVarChar).Value = dwData["ABPTLFREIG"].ToString();
                    or1.Parameters.Add("ABPTLFMG", OracleType.NVarChar).Value = dwData["ABPTLFMG"].ToString();
                    or1.Parameters.Add("ABPFREIGKZ", OracleType.NVarChar).Value = dwData["ABPFREIGKZ"].ToString();
                    or1.Parameters.Add("ABPLMAFOLGE", OracleType.NVarChar).Value = dwData["ABPLMAFOLGE"].ToString();
                    or1.Parameters.Add("ABPENDAUFM", OracleType.NVarChar).Value = dwData["ABPENDAUFM"].ToString();
                    or1.Parameters.Add("ABPZAUFM", OracleType.NVarChar).Value = dwData["ABPZAUFM"].ToString();
                    or1.Parameters.Add("ABPLIEFNR", OracleType.NVarChar).Value = dwData["ABPLIEFNR"].ToString();
                    or1.Parameters.Add("ABPGESSTA", OracleType.NVarChar).Value = dwData["ABPGESSTA"].ToString();
                    or1.Parameters.Add("ABPKDSTA", OracleType.NVarChar).Value = dwData["ABPKDSTA"].ToString();
                    or1.Parameters.Add("ABPWSSTA", OracleType.NVarChar).Value = dwData["ABPWSSTA"].ToString();
                    or1.Parameters.Add("ABPAPSTA", OracleType.NVarChar).Value = dwData["ABPAPSTA"].ToString();
                    or1.Parameters.Add("ABPRZSTA", OracleType.NVarChar).Value = dwData["ABPRZSTA"].ToString();
                    or1.Parameters.Add("ABPWPSTA", OracleType.NVarChar).Value = dwData["ABPWPSTA"].ToString();
                    or1.Parameters.Add("ABPWBSTA", OracleType.NVarChar).Value = dwData["ABPWBSTA"].ToString();
                    or1.Parameters.Add("ABPABSTA", OracleType.NVarChar).Value = dwData["ABPABSTA"].ToString();
                    or1.Parameters.Add("ABPERLKZ", OracleType.NVarChar).Value = dwData["ABPERLKZ"].ToString();
                    or1.Parameters.Add("ABPERLDAT", OracleType.NVarChar).Value = dwData["ABPERLDAT"].ToString();
                    or1.Parameters.Add("ABPBEWKZ", OracleType.NVarChar).Value = dwData["ABPBEWKZ"].ToString();
                    or1.Parameters.Add("ABPDRKZ1", OracleType.NVarChar).Value = dwData["ABPDRKZ1"].ToString();
                    or1.Parameters.Add("ABPDRKZ2", OracleType.NVarChar).Value = dwData["ABPDRKZ2"].ToString();
                    or1.Parameters.Add("ABPDRKZ3", OracleType.NVarChar).Value = dwData["ABPDRKZ3"].ToString();
                    or1.Parameters.Add("ABPDRKZ4", OracleType.NVarChar).Value = dwData["ABPDRKZ4"].ToString();
                    or1.Parameters.Add("ABPDRKZ5", OracleType.NVarChar).Value = dwData["ABPDRKZ5"].ToString();
                    or1.Parameters.Add("ABPDRKZ6", OracleType.NVarChar).Value = dwData["ABPDRKZ6"].ToString();
                    or1.Parameters.Add("ABPDRKZ7", OracleType.NVarChar).Value = dwData["ABPDRKZ7"].ToString();
                    or1.Parameters.Add("ABPDRKZ8", OracleType.NVarChar).Value = dwData["ABPDRKZ8"].ToString();
                    or1.Parameters.Add("ABPDRKZ9", OracleType.NVarChar).Value = dwData["ABPDRKZ9"].ToString();
                    or1.Parameters.Add("ABPDRKZ10", OracleType.NVarChar).Value = dwData["ABPDRKZ10"].ToString();
                    or1.Parameters.Add("ABPDR1USER", OracleType.NVarChar).Value = dwData["ABPDR1USER"].ToString();
                    or1.Parameters.Add("ABPDR1DAT", OracleType.NVarChar).Value = dwData["ABPDR1DAT"].ToString();
                    or1.Parameters.Add("ABPDR8USER", OracleType.NVarChar).Value = dwData["ABPDR8USER"].ToString();
                    or1.Parameters.Add("ABPDR8DAT", OracleType.NVarChar).Value = dwData["ABPDR8DAT"].ToString();
                    or1.Parameters.Add("ABPRETOURZL", OracleType.NVarChar).Value = dwData["ABPRETOURZL"].ToString();
                    or1.Parameters.Add("ABPRPCOUNTAK", OracleType.NVarChar).Value = dwData["ABPRPCOUNTAK"].ToString();
                    or1.Parameters.Add("ABPURAUFKRS", OracleType.NVarChar).Value = dwData["ABPURAUFKRS"].ToString();
                    or1.Parameters.Add("ABPURAUFLFD", OracleType.NVarChar).Value = dwData["ABPURAUFLFD"].ToString();
                    or1.Parameters.Add("ABPURAUFPOS", OracleType.NVarChar).Value = dwData["ABPURAUFPOS"].ToString();
                    or1.Parameters.Add("ABPASAUFKRS", OracleType.NVarChar).Value = dwData["ABPASAUFKRS"].ToString();
                    or1.Parameters.Add("ABPASAUFLFD", OracleType.NVarChar).Value = dwData["ABPASAUFLFD"].ToString();
                    or1.Parameters.Add("ABPASAUFPOS", OracleType.NVarChar).Value = dwData["ABPASAUFPOS"].ToString();
                    or1.Parameters.Add("ABPREAFOLGE", OracleType.NVarChar).Value = dwData["ABPREAFOLGE"].ToString();
                    or1.Parameters.Add("ABPRWKRS", OracleType.NVarChar).Value = dwData["ABPRWKRS"].ToString();
                    or1.Parameters.Add("ABPRWLFD", OracleType.NVarChar).Value = dwData["ABPRWLFD"].ToString();
                    or1.Parameters.Add("ABPSTKNRKR", OracleType.NVarChar).Value = dwData["ABPSTKNRKR"].ToString();
                    or1.Parameters.Add("ABPSERIE", OracleType.NVarChar).Value = dwData["ABPSERIE"].ToString();
                    or1.Parameters.Add("ABPAGBKZ", OracleType.NVarChar).Value = dwData["ABPAGBKZ"].ToString();
                    or1.Parameters.Add("ABPWAART", OracleType.NVarChar).Value = dwData["ABPWAART"].ToString();
                    or1.Parameters.Add("ABPANZSTK", OracleType.NVarChar).Value = dwData["ABPANZSTK"].ToString();
                    or1.Parameters.Add("ABPZUGETGES", OracleType.NVarChar).Value = dwData["ABPZUGETGES"].ToString();
                    or1.Parameters.Add("ABPSTKKZ", OracleType.NVarChar).Value = dwData["ABPSTKKZ"].ToString();
                    or1.Parameters.Add("ABPSTKLG", OracleType.NVarChar).Value = dwData["ABPSTKLG"].ToString();
                    or1.Parameters.Add("ABPANZSTKR", OracleType.NVarChar).Value = dwData["ABPANZSTKR"].ToString();
                    or1.Parameters.Add("ABPABZKZ", OracleType.NVarChar).Value = dwData["ABPABZKZ"].ToString();
                    or1.Parameters.Add("ABPBDEKZ", OracleType.NVarChar).Value = dwData["ABPBDEKZ"].ToString();
                    or1.Parameters.Add("ABPSUBSYS", OracleType.NVarChar).Value = dwData["ABPSUBSYS"].ToString();
                    or1.Parameters.Add("ABPDATBDE", OracleType.NVarChar).Value = dwData["ABPDATBDE"].ToString();
                    or1.Parameters.Add("ABPUHRBDE", OracleType.NVarChar).Value = dwData["ABPUHRBDE"].ToString();
                    or1.Parameters.Add("ABPDISPOKZ", OracleType.NVarChar).Value = dwData["ABPDISPOKZ"].ToString();
                    or1.Parameters.Add("ABPSCHLICHTE", OracleType.NVarChar).Value = dwData["ABPSCHLICHTE"].ToString();
                    or1.Parameters.Add("ABPZZUSATZ", OracleType.NVarChar).Value = dwData["ABPZZUSATZ"].ToString();
                    or1.Parameters.Add("ABPZZUSKZ", OracleType.NVarChar).Value = dwData["ABPZZUSKZ"].ToString();
                    or1.Parameters.Add("ABPSZUSTAND", OracleType.NVarChar).Value = dwData["ABPSZUSTAND"].ToString();
                    or1.Parameters.Add("ABPIZUSTAND", OracleType.NVarChar).Value = dwData["ABPIZUSTAND"].ToString();
                    or1.Parameters.Add("ABPSZUSATZKZ1", OracleType.NVarChar).Value = dwData["ABPSZUSATZKZ1"].ToString();
                    or1.Parameters.Add("ABPSZUSATZKZ2", OracleType.NVarChar).Value = dwData["ABPSZUSATZKZ2"].ToString();
                    or1.Parameters.Add("ABPSZUSATZKZ3", OracleType.NVarChar).Value = dwData["ABPSZUSATZKZ3"].ToString();
                    or1.Parameters.Add("ABPSZUSATZKZ4", OracleType.NVarChar).Value = dwData["ABPSZUSATZKZ4"].ToString();
                    or1.Parameters.Add("ABPWERKE", OracleType.NVarChar).Value = dwData["ABPWERKE"].ToString();
                    or1.Parameters.Add("ABPLBMUSTR", OracleType.NVarChar).Value = dwData["ABPLBMUSTR"].ToString();
                    or1.Parameters.Add("ABPFBMUSTR", OracleType.NVarChar).Value = dwData["ABPFBMUSTR"].ToString();
                    or1.Parameters.Add("ABPREAUFKRS", OracleType.NVarChar).Value = dwData["ABPREAUFKRS"].ToString();
                    or1.Parameters.Add("ABPREAUFLFD", OracleType.NVarChar).Value = dwData["ABPREAUFLFD"].ToString();
                    or1.Parameters.Add("ABPREAUFPOS", OracleType.NVarChar).Value = dwData["ABPREAUFPOS"].ToString();
                    or1.Parameters.Add("ABPLTVORL", OracleType.NVarChar).Value = dwData["ABPLTVORL"].ToString();
                    or1.Parameters.Add("ABPFDZ", OracleType.NVarChar).Value = dwData["ABPFDZ"].ToString();
                    or1.Parameters.Add("ABPARTEX", OracleType.NVarChar).Value = dwData["ABPARTEX"].ToString();
                    or1.Parameters.Add("ABPLETEILNR", OracleType.NVarChar).Value = dwData["ABPLETEILNR"].ToString();
                    or1.Parameters.Add("ABPANSNR", OracleType.NVarChar).Value = dwData["ABPANSNR"].ToString();
                    or1.Parameters.Add("ABPUPOS", OracleType.NVarChar).Value = dwData["ABPUPOS"].ToString();
                    or1.Parameters.Add("ABPTP", OracleType.NVarChar).Value = dwData["ABPTP"].ToString();
                    or1.Parameters.Add("ABPLBDENR", OracleType.NVarChar).Value = dwData["ABPLBDENR"].ToString();
                    or1.Parameters.Add("ABPTMCOUNT", OracleType.NVarChar).Value = dwData["ABPTMCOUNT"].ToString();
                    or1.Parameters.Add("ABPTMCOUNTAK", OracleType.NVarChar).Value = dwData["ABPTMCOUNTAK"].ToString();
                    or1.Parameters.Add("ABPKDPARTIE", OracleType.NVarChar).Value = dwData["ABPKDPARTIE"].ToString();
                    or1.Parameters.Add("ABPBAHNKZ", OracleType.NVarChar).Value = dwData["ABPBAHNKZ"].ToString();
                    or1.Parameters.Add("ABPGAENGE", OracleType.NVarChar).Value = dwData["ABPGAENGE"].ToString();
                    or1.Parameters.Add("ABPZWTWAHL", OracleType.NVarChar).Value = dwData["ABPZWTWAHL"].ToString();
                    or1.Parameters.Add("ABPDIVWLFM", OracleType.NVarChar).Value = dwData["ABPDIVWLFM"].ToString();
                    or1.Parameters.Add("ABPDIVWKG", OracleType.NVarChar).Value = dwData["ABPDIVWKG"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    #region=====Part2-1-1-1=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
                       + "ABPDISPOST=:ABPDISPOST,"
                       + "ABPKETTAUFT=:ABPKETTAUFT,"
                       + "ABPKETTGARN=:ABPKETTGARN,"
                       + "ABPSPGRD=:ABPSPGRD,"
                       + "ABPSPBENID=:ABPSPBENID "

                       + " WHERE  "
                       + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPDISPOST", OracleType.NVarChar).Value = dwData["ABPDISPOST"].ToString();
                    or1.Parameters.Add("ABPKETTAUFT", OracleType.NVarChar).Value = dwData["ABPKETTAUFT"].ToString();
                    or1.Parameters.Add("ABPKETTGARN", OracleType.NVarChar).Value = dwData["ABPKETTGARN"].ToString();
                    or1.Parameters.Add("ABPSPGRD", OracleType.NVarChar).Value = dwData["ABPSPGRD"].ToString();
                    or1.Parameters.Add("ABPSPBENID", OracleType.NVarChar).Value = dwData["ABPSPBENID"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    #region=====Part2-1-1-2=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
                   + "ABPSPDAT=:ABPSPDAT,"
                   + "ABPLMDAT=:ABPLMDAT,"
                   + "ABPLMZT=:ABPLMZT,"
                   + "ABPWPLKZ=:ABPWPLKZ,"
                   + "ABPKKUNDNR=:ABPKKUNDNR,"
                   + "ABPKLAND=:ABPKLAND,"
                   + "ABPKVB=:ABPKVB,"
                   + "ABPKVG=:ABPKVG "
                   + " WHERE  "
                   + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPSPDAT", OracleType.NVarChar).Value = dwData["ABPSPDAT"].ToString();
                    or1.Parameters.Add("ABPLMDAT", OracleType.NVarChar).Value = dwData["ABPLMDAT"].ToString();
                    or1.Parameters.Add("ABPLMZT", OracleType.NVarChar).Value = dwData["ABPLMZT"].ToString();
                    or1.Parameters.Add("ABPWPLKZ", OracleType.NVarChar).Value = dwData["ABPWPLKZ"].ToString();
                    or1.Parameters.Add("ABPKKUNDNR", OracleType.NVarChar).Value = dwData["ABPKKUNDNR"].ToString();
                    or1.Parameters.Add("ABPKLAND", OracleType.NVarChar).Value = dwData["ABPKLAND"].ToString();
                    or1.Parameters.Add("ABPKVB", OracleType.NVarChar).Value = dwData["ABPKVB"].ToString();
                    or1.Parameters.Add("ABPKVG", OracleType.NVarChar).Value = dwData["ABPKVG"].ToString();
                    Connect2Proxy(or1);
                    #endregion

                    #region=====Part2-1-2-1=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
           + "ABPKPROGRP=:ABPKPROGRP,"
           + "ABPKARTGRP=:ABPKARTGRP,"
           + "ABPKVKZ=:ABPKVKZ,"
           + "ABPLAEVON=:ABPLAEVON,"
           + "ABPLAEBIS=:ABPLAEBIS,"
           + "ABPSTDLAE=:ABPSTDLAE,"
           + "ABPMGV=:ABPMGV,"
           + "ABPMGB=:ABPMGB "
           + " WHERE  "
           + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPKPROGRP", OracleType.NVarChar).Value = dwData["ABPKPROGRP"].ToString();
                    or1.Parameters.Add("ABPKARTGRP", OracleType.NVarChar).Value = dwData["ABPKARTGRP"].ToString();
                    or1.Parameters.Add("ABPKVKZ", OracleType.NVarChar).Value = dwData["ABPKVKZ"].ToString();
                    or1.Parameters.Add("ABPLAEVON", OracleType.NVarChar).Value = dwData["ABPLAEVON"].ToString();
                    or1.Parameters.Add("ABPLAEBIS", OracleType.NVarChar).Value = dwData["ABPLAEBIS"].ToString();
                    or1.Parameters.Add("ABPSTDLAE", OracleType.NVarChar).Value = dwData["ABPSTDLAE"].ToString();
                    or1.Parameters.Add("ABPMGV", OracleType.NVarChar).Value = dwData["ABPMGV"].ToString();
                    or1.Parameters.Add("ABPMGB", OracleType.NVarChar).Value = dwData["ABPMGB"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    #region=====Part2-1-2-2=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
           + "ABPPAS=:ABPPAS,"
           + "ABPPAI=:ABPPAI,"
           + "ABPAZUTEIL=:ABPAZUTEIL,"
           + "ABPZUTART=:ABPZUTART,"
           + "ABPFA=:ABPFA,"
           + "ABPGA=:ABPGA,"
           + "ABPQA=:ABPQA "
           + " WHERE  "
           + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();
                    or1.Parameters.Add("ABPPAS", OracleType.NVarChar).Value = dwData["ABPPAS"].ToString();
                    or1.Parameters.Add("ABPPAI", OracleType.NVarChar).Value = dwData["ABPPAI"].ToString();
                    or1.Parameters.Add("ABPAZUTEIL", OracleType.NVarChar).Value = dwData["ABPAZUTEIL"].ToString();
                    or1.Parameters.Add("ABPZUTART", OracleType.NVarChar).Value = dwData["ABPZUTART"].ToString();
                    or1.Parameters.Add("ABPFA", OracleType.NVarChar).Value = dwData["ABPFA"].ToString();
                    or1.Parameters.Add("ABPGA", OracleType.NVarChar).Value = dwData["ABPGA"].ToString();
                    or1.Parameters.Add("ABPQA", OracleType.NVarChar).Value = dwData["ABPQA"].ToString();
                    Connect2Proxy(or1);
                    #endregion

                    #region=====Part2-2-1=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
           + "ABPMAFZST=:ABPMAFZST,"
           + "ABPQPKTH=:ABPQPKTH,"
           + "ABPQPKTLH=:ABPQPKTLH,"
           + "ABPSTKNEUTR=:ABPSTKNEUTR,"
           + "ABPREGEL=:ABPREGEL,"
           + "ABPSTAFFNR=:ABPSTAFFNR,"
           + "ABPWERKEKZ=:ABPWERKEKZ,"
           + "ABPWKSTKRS=:ABPWKSTKRS,"
           + "ABPWKST=:ABPWKST,"
           + "ABPWKART=:ABPWKART,"
           + "ABPWMNRKRS=:ABPWMNRKRS,"
           + "ABPWMLFDNR=:ABPWMLFDNR,"
           + "ABPWMPOS=:ABPWMPOS,"
           + "ABPWMODNR=:ABPWMODNR,"
           + "ABPWINTV=:ABPWINTV,"
           + "ABPWKENN=:ABPWKENN,"
           + "ABPWSTOERGRD=:ABPWSTOERGRD,"
           + "ABPWAKSTKRS=:ABPWAKSTKRS,"
           + "ABPWAKST=:ABPWAKST,"
           + "ABPWPERSNR=:ABPWPERSNR "
           + " WHERE  "
           + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPMAFZST", OracleType.NVarChar).Value = dwData["ABPMAFZST"].ToString();
                    or1.Parameters.Add("ABPQPKTH", OracleType.NVarChar).Value = dwData["ABPQPKTH"].ToString();
                    or1.Parameters.Add("ABPQPKTLH", OracleType.NVarChar).Value = dwData["ABPQPKTLH"].ToString();
                    or1.Parameters.Add("ABPSTKNEUTR", OracleType.NVarChar).Value = dwData["ABPSTKNEUTR"].ToString();
                    or1.Parameters.Add("ABPREGEL", OracleType.NVarChar).Value = dwData["ABPREGEL"].ToString();
                    or1.Parameters.Add("ABPSTAFFNR", OracleType.NVarChar).Value = dwData["ABPSTAFFNR"].ToString();
                    or1.Parameters.Add("ABPWERKEKZ", OracleType.NVarChar).Value = dwData["ABPWERKEKZ"].ToString();
                    or1.Parameters.Add("ABPWKSTKRS", OracleType.NVarChar).Value = dwData["ABPWKSTKRS"].ToString();
                    or1.Parameters.Add("ABPWKST", OracleType.NVarChar).Value = dwData["ABPWKST"].ToString();
                    or1.Parameters.Add("ABPWKART", OracleType.NVarChar).Value = dwData["ABPWKART"].ToString();
                    or1.Parameters.Add("ABPWMNRKRS", OracleType.NVarChar).Value = dwData["ABPWMNRKRS"].ToString();
                    or1.Parameters.Add("ABPWMLFDNR", OracleType.NVarChar).Value = dwData["ABPWMLFDNR"].ToString();
                    or1.Parameters.Add("ABPWMPOS", OracleType.NVarChar).Value = dwData["ABPWMPOS"].ToString();
                    or1.Parameters.Add("ABPWMODNR", OracleType.NVarChar).Value = dwData["ABPWMODNR"].ToString();
                    or1.Parameters.Add("ABPWINTV", OracleType.NVarChar).Value = dwData["ABPWINTV"].ToString();
                    or1.Parameters.Add("ABPWKENN", OracleType.NVarChar).Value = dwData["ABPWKENN"].ToString();
                    or1.Parameters.Add("ABPWSTOERGRD", OracleType.NVarChar).Value = dwData["ABPWSTOERGRD"].ToString();
                    or1.Parameters.Add("ABPWAKSTKRS", OracleType.NVarChar).Value = dwData["ABPWAKSTKRS"].ToString();
                    or1.Parameters.Add("ABPWAKST", OracleType.NVarChar).Value = dwData["ABPWAKST"].ToString();
                    or1.Parameters.Add("ABPWPERSNR", OracleType.NVarChar).Value = dwData["ABPWPERSNR"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    #region=====Part2-2-2-1-1=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
                        + "ABPWDATV=:ABPWDATV,"
                        + "ABPWZEITV=:ABPWZEITV,"
                        + "ABPWDATB=:ABPWDATB,"
                        + "ABPWZEITB=:ABPWZEITB "
                        + " WHERE  "
                        + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPWDATV", OracleType.NVarChar).Value = dwData["ABPWDATV"].ToString();
                    or1.Parameters.Add("ABPWZEITV", OracleType.NVarChar).Value = dwData["ABPWZEITV"].ToString();
                    or1.Parameters.Add("ABPWDATB", OracleType.NVarChar).Value = dwData["ABPWDATB"].ToString();
                    or1.Parameters.Add("ABPWZEITB", OracleType.NVarChar).Value = dwData["ABPWZEITB"].ToString();


                    Connect2Proxy(or1);
                    #endregion
                    #region=====Part2-2-2-1-2=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
                        + "ABPWSTA=:ABPWSTA,"
                        + "ABPFKALK=:ABPFKALK,"
                        + "ABPLIEFDATN=:ABPLIEFDATN,"
                        + "ABPLAEAENDE=:ABPLAEAENDE,"
                        + "ABPLAEAENDA=:ABPLAEAENDA "
                        + " WHERE  "
                        + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();
                    or1.Parameters.Add("ABPWSTA", OracleType.NVarChar).Value = dwData["ABPWSTA"].ToString();
                    or1.Parameters.Add("ABPFKALK", OracleType.NVarChar).Value = dwData["ABPFKALK"].ToString();
                    or1.Parameters.Add("ABPLIEFDATN", OracleType.NVarChar).Value = dwData["ABPLIEFDATN"].ToString();
                    or1.Parameters.Add("ABPLAEAENDE", OracleType.NVarChar).Value = dwData["ABPLAEAENDE"].ToString();
                    or1.Parameters.Add("ABPLAEAENDA", OracleType.NVarChar).Value = dwData["ABPLAEAENDA"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    #region=====Part2-2-2-2=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
                        + "ABPDMWAKZ=:ABPDMWAKZ,"
                        + "ABPDMART=:ABPDMART,"
                        + "ABPDMVAR=:ABPDMVAR,"
                        + "ABPDMDESS=:ABPDMDESS,"
                        + "ABPDMCOLORIT=:ABPDMCOLORIT,"
                        + "ABPDMFARBE=:ABPDMFARBE,"
                        + "ABPDMBESCHICH=:ABPDMBESCHICH "
                        + " WHERE  "
                        + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPDMWAKZ", OracleType.NVarChar).Value = dwData["ABPDMWAKZ"].ToString();
                    or1.Parameters.Add("ABPDMART", OracleType.NVarChar).Value = dwData["ABPDMART"].ToString();
                    or1.Parameters.Add("ABPDMVAR", OracleType.NVarChar).Value = dwData["ABPDMVAR"].ToString();
                    or1.Parameters.Add("ABPDMDESS", OracleType.NVarChar).Value = dwData["ABPDMDESS"].ToString();
                    or1.Parameters.Add("ABPDMCOLORIT", OracleType.NVarChar).Value = dwData["ABPDMCOLORIT"].ToString();
                    or1.Parameters.Add("ABPDMFARBE", OracleType.NVarChar).Value = dwData["ABPDMFARBE"].ToString();
                    or1.Parameters.Add("ABPDMBESCHICH", OracleType.NVarChar).Value = dwData["ABPDMBESCHICH"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    #region=====Par3=======
                    or1 = OracleDB.CreateCommand();
                    or1.CommandText = "UPDATE ABPOS SET "
                        + "ABPDKART=:ABPDKART,"
           + "ABPDKVAR=:ABPDKVAR,"
           + "ABPDKFARBE=:ABPDKFARBE,"
           + "ABPDKBRUT=:ABPDKBRUT,"
           + "ABPGENEHMKZ=:ABPGENEHMKZ,"
           + "ABPSTUEART=:ABPSTUEART,"
           + "ABPCOMPKZ=:ABPCOMPKZ,"
           + "ABPPOSTYP=:ABPPOSTYP,"
           + "ABPORDER=:ABPORDER,"
           + "ABPNPGRUND=:ABPNPGRUND,"
           + "ABPREWEIL=:ABPREWEIL,"
           + "ABPFSCHL=:ABPFSCHL,"
           + "ABPKSTKRS=:ABPKSTKRS,"
           + "ABPKST=:ABPKST,"
           + "ABPMURW=:ABPMURW,"
           + "ABPMUVB=:ABPMUVB,"
           + "ABPMUFW=:ABPMUFW,"
           + "ABPMUPF=:ABPMUPF,"
           + "ABPERSTFB=:ABPERSTFB,"
           + "ABPERSTDR=:ABPERSTDR,"
           + "ABPERSTBE=:ABPERSTBE,"
           + "ABPMUCTOD=:ABPMUCTOD,"
           + "ABPKDFREI=:ABPKDFREI,"
           + "ABPREZFB=:ABPREZFB,"
           + "ABPREZDR=:ABPREZDR,"
           + "ABPPRUEF=:ABPPRUEF,"
           + "ABPNIXWE=:ABPNIXWE,"
           + "ABPCOLSTA=:ABPCOLSTA,"
           + "ABPFBSTA=:ABPFBSTA,"
           + "ABPBAHNNR=:ABPBAHNNR,"
           + "ABPBAHNBRT=:ABPBAHNBRT,"
           + "ABPFLBEDECK=:ABPFLBEDECK,"
           + "ABPDATABDE=:ABPDATABDE,"
           + "ABPUHRABDE=:ABPUHRABDE,"
           + "ABPLOEKZ=:ABPLOEKZ,"
           + "ABPTERMDAT=:ABPTERMDAT,"
           + "ABPPRFI=:ABPPRFI,"
           + "ABPPRVAR=:ABPPRVAR,"
           + "ABPPRBE=:ABPPRBE,"
           + "ABPPRZU=:ABPPRZU,"
           + "ABPPRDESS=:ABPPRDESS,"
           + "ABPZUSATZ1=:ABPZUSATZ1,"
           + "ABPZUSATZ2=:ABPZUSATZ2,"
           + "ABPZUSATZ3=:ABPZUSATZ3,"
           + "ABPZUSATZ4=:ABPZUSATZ4,"
           + "ABPZUSATZ5=:ABPZUSATZ5,"
           + "ABPFLAG1=:ABPFLAG1,"
           + "ABPFLAG2=:ABPFLAG2,"
           + "ABPFLAG3=:ABPFLAG3,"
           + "ABPFLAG4=:ABPFLAG4,"
           + "ABPFLAG5=:ABPFLAG5,"
           + "ABPORGMG=:ABPORGMG,"
           + "ABPDIFFMG=:ABPDIFFMG,"
           + "ABPRARTKZ=:ABPRARTKZ,"
           + "ABPSTARTDATN=:ABPSTARTDATN,"
           + "ABPAESTAT=:ABPAESTAT,"
           + "ABPLBAUFKRS=:ABPLBAUFKRS,"
           + "ABPLBAUFLFD=:ABPLBAUFLFD,"
           + "ABPLBAUFPOS=:ABPLBAUFPOS,"
           + "ABPVEAUFTRAG=:ABPVEAUFTRAG,"
           + "ABPREGBLOG=:ABPREGBLOG,"
           + "ABPREGBDATE=:ABPREGBDATE,"
           + "ABPPROJNR=:ABPPROJNR,"
           + "ABPSHADE=:ABPSHADE,"
           + "ABPSHADEUNCL=:ABPSHADEUNCL,"
           + "ABPLICHTART=:ABPLICHTART,"
           + "ABPLINE=:ABPLINE,"
           + "ABPFILLER1=:ABPFILLER1,"
           + "ABPAENDZL=:ABPAENDZL,"
           + "ABPAENDBEN=:ABPAENDBEN,"
           + "ABPAENDDAT=:ABPAENDDAT,"
           + "ABPNEUBEN=:ABPNEUBEN,"
           + "ABPNEUDAT=:ABPNEUDAT"
           + " WHERE  "
           + "  ABPMANDANT=:ABPMANDANT AND ABPAUFKRS=:ABPAUFKRS  AND ABPAUFLFD=:ABPAUFLFD AND ABPAUFPOS=:ABPAUFPOS ";
                    or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"].ToString();
                    or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"].ToString();
                    or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"].ToString();
                    or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"].ToString();

                    or1.Parameters.Add("ABPDKART", OracleType.NVarChar).Value = dwData["ABPDKART"].ToString();
                    or1.Parameters.Add("ABPDKVAR", OracleType.NVarChar).Value = dwData["ABPDKVAR"].ToString();
                    or1.Parameters.Add("ABPDKFARBE", OracleType.NVarChar).Value = dwData["ABPDKFARBE"].ToString();
                    or1.Parameters.Add("ABPDKBRUT", OracleType.NVarChar).Value = dwData["ABPDKBRUT"].ToString();
                    or1.Parameters.Add("ABPGENEHMKZ", OracleType.NVarChar).Value = dwData["ABPGENEHMKZ"].ToString();
                    or1.Parameters.Add("ABPSTUEART", OracleType.NVarChar).Value = dwData["ABPSTUEART"].ToString();
                    or1.Parameters.Add("ABPCOMPKZ", OracleType.NVarChar).Value = dwData["ABPCOMPKZ"].ToString();
                    or1.Parameters.Add("ABPPOSTYP", OracleType.NVarChar).Value = dwData["ABPPOSTYP"].ToString();
                    or1.Parameters.Add("ABPORDER", OracleType.NVarChar).Value = dwData["ABPORDER"].ToString();
                    or1.Parameters.Add("ABPNPGRUND", OracleType.NVarChar).Value = dwData["ABPNPGRUND"].ToString();
                    or1.Parameters.Add("ABPREWEIL", OracleType.NVarChar).Value = dwData["ABPREWEIL"].ToString();
                    or1.Parameters.Add("ABPFSCHL", OracleType.NVarChar).Value = dwData["ABPFSCHL"].ToString();
                    or1.Parameters.Add("ABPKSTKRS", OracleType.NVarChar).Value = dwData["ABPKSTKRS"].ToString();
                    or1.Parameters.Add("ABPKST", OracleType.NVarChar).Value = dwData["ABPKST"].ToString();
                    or1.Parameters.Add("ABPMURW", OracleType.NVarChar).Value = dwData["ABPMURW"].ToString();
                    or1.Parameters.Add("ABPMUVB", OracleType.NVarChar).Value = dwData["ABPMUVB"].ToString();
                    or1.Parameters.Add("ABPMUFW", OracleType.NVarChar).Value = dwData["ABPMUFW"].ToString();
                    or1.Parameters.Add("ABPMUPF", OracleType.NVarChar).Value = dwData["ABPMUPF"].ToString();
                    or1.Parameters.Add("ABPERSTFB", OracleType.NVarChar).Value = dwData["ABPERSTFB"].ToString();
                    or1.Parameters.Add("ABPERSTDR", OracleType.NVarChar).Value = dwData["ABPERSTDR"].ToString();
                    or1.Parameters.Add("ABPERSTBE", OracleType.NVarChar).Value = dwData["ABPERSTBE"].ToString();
                    or1.Parameters.Add("ABPMUCTOD", OracleType.NVarChar).Value = dwData["ABPMUCTOD"].ToString();
                    or1.Parameters.Add("ABPKDFREI", OracleType.NVarChar).Value = dwData["ABPKDFREI"].ToString();
                    or1.Parameters.Add("ABPREZFB", OracleType.NVarChar).Value = dwData["ABPREZFB"].ToString();
                    or1.Parameters.Add("ABPREZDR", OracleType.NVarChar).Value = dwData["ABPREZDR"].ToString();
                    or1.Parameters.Add("ABPPRUEF", OracleType.NVarChar).Value = dwData["ABPPRUEF"].ToString();
                    or1.Parameters.Add("ABPNIXWE", OracleType.NVarChar).Value = dwData["ABPNIXWE"].ToString();
                    or1.Parameters.Add("ABPCOLSTA", OracleType.NVarChar).Value = dwData["ABPCOLSTA"].ToString();
                    or1.Parameters.Add("ABPFBSTA", OracleType.NVarChar).Value = dwData["ABPFBSTA"].ToString();
                    or1.Parameters.Add("ABPBAHNNR", OracleType.NVarChar).Value = dwData["ABPBAHNNR"].ToString();
                    or1.Parameters.Add("ABPBAHNBRT", OracleType.NVarChar).Value = dwData["ABPBAHNBRT"].ToString();
                    or1.Parameters.Add("ABPFLBEDECK", OracleType.NVarChar).Value = dwData["ABPFLBEDECK"].ToString();
                    or1.Parameters.Add("ABPDATABDE", OracleType.NVarChar).Value = dwData["ABPDATABDE"].ToString();
                    or1.Parameters.Add("ABPUHRABDE", OracleType.NVarChar).Value = dwData["ABPUHRABDE"].ToString();
                    or1.Parameters.Add("ABPLOEKZ", OracleType.NVarChar).Value = dwData["ABPLOEKZ"].ToString();
                    or1.Parameters.Add("ABPTERMDAT", OracleType.NVarChar).Value = dwData["ABPTERMDAT"].ToString();
                    or1.Parameters.Add("ABPPRFI", OracleType.NVarChar).Value = dwData["ABPPRFI"].ToString();
                    or1.Parameters.Add("ABPPRVAR", OracleType.NVarChar).Value = dwData["ABPPRVAR"].ToString();
                    or1.Parameters.Add("ABPPRBE", OracleType.NVarChar).Value = dwData["ABPPRBE"].ToString();
                    or1.Parameters.Add("ABPPRZU", OracleType.NVarChar).Value = dwData["ABPPRZU"].ToString();
                    or1.Parameters.Add("ABPPRDESS", OracleType.NVarChar).Value = dwData["ABPPRDESS"].ToString();
                    or1.Parameters.Add("ABPZUSATZ1", OracleType.NVarChar).Value = dwData["ABPZUSATZ1"].ToString();
                    or1.Parameters.Add("ABPZUSATZ2", OracleType.NVarChar).Value = dwData["ABPZUSATZ2"].ToString();
                    or1.Parameters.Add("ABPZUSATZ3", OracleType.NVarChar).Value = dwData["ABPZUSATZ3"].ToString();
                    or1.Parameters.Add("ABPZUSATZ4", OracleType.NVarChar).Value = dwData["ABPZUSATZ4"].ToString();
                    or1.Parameters.Add("ABPZUSATZ5", OracleType.NVarChar).Value = dwData["ABPZUSATZ5"].ToString();
                    or1.Parameters.Add("ABPFLAG1", OracleType.NVarChar).Value = dwData["ABPFLAG1"].ToString();
                    or1.Parameters.Add("ABPFLAG2", OracleType.NVarChar).Value = dwData["ABPFLAG2"].ToString();
                    or1.Parameters.Add("ABPFLAG3", OracleType.NVarChar).Value = dwData["ABPFLAG3"].ToString();
                    or1.Parameters.Add("ABPFLAG4", OracleType.NVarChar).Value = dwData["ABPFLAG4"].ToString();
                    or1.Parameters.Add("ABPFLAG5", OracleType.NVarChar).Value = dwData["ABPFLAG5"].ToString();
                    or1.Parameters.Add("ABPORGMG", OracleType.NVarChar).Value = dwData["ABPORGMG"].ToString();
                    or1.Parameters.Add("ABPDIFFMG", OracleType.NVarChar).Value = dwData["ABPDIFFMG"].ToString();
                    or1.Parameters.Add("ABPRARTKZ", OracleType.NVarChar).Value = dwData["ABPRARTKZ"].ToString();
                    or1.Parameters.Add("ABPSTARTDATN", OracleType.NVarChar).Value = dwData["ABPSTARTDATN"].ToString();
                    or1.Parameters.Add("ABPAESTAT", OracleType.NVarChar).Value = dwData["ABPAESTAT"].ToString();
                    or1.Parameters.Add("ABPLBAUFKRS", OracleType.NVarChar).Value = dwData["ABPLBAUFKRS"].ToString();
                    or1.Parameters.Add("ABPLBAUFLFD", OracleType.NVarChar).Value = dwData["ABPLBAUFLFD"].ToString();
                    or1.Parameters.Add("ABPLBAUFPOS", OracleType.NVarChar).Value = dwData["ABPLBAUFPOS"].ToString();
                    or1.Parameters.Add("ABPVEAUFTRAG", OracleType.NVarChar).Value = dwData["ABPVEAUFTRAG"].ToString();
                    or1.Parameters.Add("ABPREGBLOG", OracleType.NVarChar).Value = dwData["ABPREGBLOG"].ToString();
                    or1.Parameters.Add("ABPREGBDATE", OracleType.NVarChar).Value = dwData["ABPREGBDATE"].ToString();
                    or1.Parameters.Add("ABPPROJNR", OracleType.NVarChar).Value = dwData["ABPPROJNR"].ToString();
                    or1.Parameters.Add("ABPSHADE", OracleType.NVarChar).Value = dwData["ABPSHADE"].ToString();
                    or1.Parameters.Add("ABPSHADEUNCL", OracleType.NVarChar).Value = dwData["ABPSHADEUNCL"].ToString();
                    or1.Parameters.Add("ABPLICHTART", OracleType.NVarChar).Value = dwData["ABPLICHTART"].ToString();
                    or1.Parameters.Add("ABPLINE", OracleType.NVarChar).Value = dwData["ABPLINE"].ToString();
                    or1.Parameters.Add("ABPFILLER1", OracleType.NVarChar).Value = dwData["ABPFILLER1"].ToString();
                    or1.Parameters.Add("ABPAENDZL", OracleType.NVarChar).Value = dwData["ABPAENDZL"].ToString();
                    or1.Parameters.Add("ABPAENDBEN", OracleType.NVarChar).Value = dwData["ABPAENDBEN"].ToString();
                    or1.Parameters.Add("ABPAENDDAT", OracleType.NVarChar).Value = dwData["ABPAENDDAT"].ToString();
                    or1.Parameters.Add("ABPNEUBEN", OracleType.NVarChar).Value = dwData["ABPNEUBEN"].ToString();
                    or1.Parameters.Add("ABPNEUDAT", OracleType.NVarChar).Value = dwData["ABPNEUDAT"].ToString();
                    Connect2Proxy(or1);
                    #endregion
                    break;
            }
        }

        public void UpdateABPOS(DataRow dwData, int option)
        {

            or1 = OracleDB.CreateCommand();
            if (option == 0)
            {
                switch (app.company)
                {
                    default:
                        option = 1;
                        break;
                    case "FLT":
                        option = 10;
                        break;
                    case "TST":
                    case "SXN":
                    case "YGR":
                        option = 11;
                        break;
                }
            }
            switch (option)
            {
                case 1:
                    or1.CommandText = "UPDATE ABPOS SET ABPSPGRD=:ABPSPGRD:,ABPGESSTA=:ABPGESSTA: ,ABPAENDBEN=:ABPAENDBEN: ,ABPAENDDAT=:ABPAENDDAT:"
                        + " WHERE     ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 2:
                    or1.CommandText = "UPDATE ABPOS SET  ABPSOLLMENGE7=:ABPSOLLMENGE7:, ABPSOLLMENGE8=:ABPSOLLMENGE8:"
                        + " WHERE  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 3:
                    or1.CommandText = "UPDATE ABPOS SET  ABPSPGRD=:ABPSPGRD:, ABPGESSTA=:ABPGESSTA:"
                        + " WHERE  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);

                    Connect2Proxy(or1);
                    break;
                case 4:
                    or1.CommandText = "UPDATE ABPOS SET  ABPRESMGE=:ABPRESMGE:, ABPRESKG=:ABPRESKG:, ABPRESSTK=:ABPRESSTK:"
                        + " WHERE  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 5:
                    or1.CommandText = "UPDATE ABPOS SET ABPSPGRD=:ABPSPGRD:, ABPGESSTA=:ABPGESSTA: ,ABPAENDBEN=:ABPAENDBEN: ,ABPAENDDAT=:ABPAENDDAT:"
                        + " WHERE   ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD:  AND ABPAUFPOS=:ABPAUFPOS:";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 6:
                    UABP06(dwData); break;
                case 7: UABP07(dwData); break;
                case 8: UABP08(dwData); break;
                case 9: UABP09(dwData); break;
                case 10:
                    or1.CommandText = "UPDATE ABPOS SET ABPMANDANT=:ABPMANDANT:,ABPAUFKRS=:ABPAUFKRS:,ABPAUFLFD=:ABPAUFLFD:,ABPAUFPOS=:ABPAUFPOS:,ABPVFAUFKRS=:ABPVFAUFKRS:,ABPVFAUFLFD=:ABPVFAUFLFD:,ABPVFAUFPOS=:ABPVFAUFPOS:,ABPAUFART=:ABPAUFART:,ABPAUFST=:ABPAUFST:,ABPAUFSTV=:ABPAUFSTV:,ABPAUFSTB=:ABPAUFSTB:,ABPAUTO=:ABPAUTO:,ABPPRIO=:ABPPRIO:,ABPTLVF=:ABPTLVF:,ABPDIVARTKZ=:ABPDIVARTKZ:,ABPKUNDNR=:ABPKUNDNR:,ABPWERK=:ABPWERK:,ABPABT=:ABPABT:,ABPWAKZ=:ABPWAKZ:,ABPART=:ABPART:,ABPVAR=:ABPVAR:,ABPFARBE=:ABPFARBE:,ABPDESS=:ABPDESS:,ABPCOLORIT=:ABPCOLORIT:,ABPBESCHICH=:ABPBESCHICH:,ABPGROE=:ABPGROE:,ABPAUFM=:ABPAUFM:,ABPVERP=:ABPVERP:,ABPANZVP=:ABPANZVP:,ABPFWARTGRA=:ABPFWARTGRA:,ABPFWARTGRP=:ABPFWARTGRP:,ABPZLO=:ABPZLO:,ABPZLB=:ABPZLB:,ABPBLO=:ABPBLO:,ABPSME=:ABPSME:,ABPSOLLMENGE1=:ABPSOLLMENGE1:,ABPSOLLMENGE2=:ABPSOLLMENGE2:,ABPSOLLMENGE3=:ABPSOLLMENGE3:,ABPSOLLMENGE4=:ABPSOLLMENGE4:,ABPSOLLMENGE5=:ABPSOLLMENGE5:,ABPSOLLMENGE6=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LER1=:ABPFILLER1:,ABPAENDZL=:ABPAENDZL:,ABPAENDBEN=:ABPAENDBEN:,ABPAENDDAT=:ABPAENDDAT:,ABPNEUBEN=:ABPNEUBEN:,ABPNEUDAT=:ABPNEUDAT:"
                        + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   ";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 11:
                    or1.CommandText = "UPDATE ABPOS SET ABPMANDANT=:ABPMANDANT:,ABPAUFKRS=:ABPAUFKRS:,ABPAUFLFD=:ABPAUFLFD:,ABPAUFPOS=:ABPAUFPOS:,ABPVFAUFKRS=:ABPVFAUFKRS:,ABPVFAUFLFD=:ABPVFAUFLFD:,ABPVFAUFPOS=:ABPVFAUFPOS:,ABPAUFART=:ABPAUFART:,ABPAUFST=:ABPAUFST:,ABPAUFSTV=:ABPAUFSTV:,ABPAUFSTB=:ABPAUFSTB:,ABPAUTO=:ABPAUTO:,ABPPRIO=:ABPPRIO:,ABPTLVF=:ABPTLVF:,ABPDIVARTKZ=:ABPDIVARTKZ:,ABPKUNDNR=:ABPKUNDNR:,ABPWERK=:ABPWERK:,ABPABT=:ABPABT:,ABPWAKZ=:ABPWAKZ:,ABPART=:ABPART:,ABPVAR=:ABPVAR:,ABPFARBE=:ABPFARBE:,ABPDESS=:ABPDESS:,ABPCOLORIT=:ABPCOLORIT:,ABPBESCHICH=:ABPBESCHICH:,ABPGROE=:ABPGROE:,ABPAUFM=:ABPAUFM:,ABPVERP=:ABPVERP:,ABPANZVP=:ABPANZVP:,ABPFWARTGRA=:ABPFWARTGRA:,ABPFWARTGRP=:ABPFWARTGRP:,ABPZLO=:ABPZLO:,ABPZLB=:ABPZLB:,ABPBLO=:ABPBLO:,ABPSME=:ABPSME:,ABPSOLLMENGE1=:ABPSOLLMENGE1:,ABPSOLL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ABPSHADE:,ABPSHADEUNCL=:ABPSHADEUNCL:,ABPLICHTART=:ABPLICHTART:,ABPLINE=:ABPLINE:,ABPFILLER1=:ABPFILLER1:,ABPAENDZL=:ABPAENDZL:,ABPAENDBEN=:ABPAENDBEN:,ABPAENDDAT=:ABPAENDDAT:,ABPNEUBEN=:ABPNEUBEN:,ABPNEUDAT=:ABPNEUDAT:"
                             + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   ";
                    or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
                    Connect2Proxy(or1);
                    break;
                case 12: UABP12(dwData); break;
                case 13:
                    UABP13(dwData);
                    break;

            }

        }
        public void UABP06(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET (ABPZUGKG,ABPZUGET)=( SELECT SUM(GAKG3+GAKG5),SUM(GAKG5) FROM GAAUF WHERE GAAUFKRS=ABPAUFKRS AND GAAUFLFD=ABPAUFLFD AND GAAUFPOS=ABPAUFPOS AND (GASA=713 OR GASA=723 OR GASA=733))"
                         + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP07(DataRow dwData)
        {
            or1.CommandText = "UPDATE ABPOS SET  ABPSOLLMENGE5=:ABPSOLLMENGE5:, ABPSOLLMENGE7=:ABPSOLLMENGE7:"
                           + " WHERE  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP08(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET  ABPSTKLG=:ABPSTKLG:,ABPSOLLMENGE7=:ABPSOLLMENGE7:,ABPSOLLMENGE5=:ABPSOLLMENGE5: "
                       + " WHERE  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP09(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET  ABPART=:ABPART:, ABPVAR=:ABPVAR:, ABPFARBE=:ABPFARBE:  WHERE    ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            GD.UGD15(dwData);
            Connect2Proxy(or1);
        }
        public void UABP12(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET ABPERLKZ=:ABPERLKZ:,ABPSPGRD=:ABPSPGRD:,ABPERLDAT=:ABPERLDAT:,ABPAENDBEN=:ABPAENDBEN:,ABPAENDDAT=:ABPAENDDAT:"
                           + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP13(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET ABPERLKZ=' ',ABPERLDAT=0,ABPSPGRD=:ABPSPGRD:"
                                     + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP15(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET ABPWPLKZ=:ABPWPLKZ:"
                          + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP16(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET (ABPZUGET,ABPZUGKG)=(SELECT SUM(WBBISTKLG) * 0.001 * 100 AS LG, SUM(WBBIGEW) * 0.001 * 100 AS GEW from WBBST"
                + " WHERE ABPMANDANT = WBBMANDANT AND ABPAUFKRS = WBBAUFKRS AND ABPAUFLFD = WBBAUFLFD AND ABPAUFPOS = WBBAUFPOS) "
                 + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   "
                + " AND EXISTS (SELECT 1 FROM WBBST WHERE ABPMANDANT = WBBMANDANT AND ABPAUFKRS = WBBAUFKRS AND ABPAUFLFD = WBBAUFLFD AND ABPAUFPOS = WBBAUFPOS)";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }

        public void UABP17(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET ABPTP=:ABPTP: "
                 + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   "
                ;
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP171(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET ABPTP=:ABPTP: "
                 + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPBESCHICH=:ABPBESCHICH:   ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }

        public void UABP18(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET (ABPEALFM)=( SELECT SUM(ABFIMG)*0.001*10 FROM ABFOLGE WHERE ABFAUFKRS=ABPAUFKRS AND ABFAUFLFD=ABPAUFLFD AND ABFAUFPOS=ABPAUFPOS  AND ABFFERTIG='J')"
                         + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP19(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET ABPANRKR=:ABPANRKR:,ABPALFDNR=:ABPALFDNR:,ABPZLO=:ABPZLO:,ABPZLB=:ABPZLB:,ABPBLO=:ABPBLO:"
                          + " WHERE ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS: AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:   ";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
        public void UABP20(DataRow dwData)
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "UPDATE ABPOS SET  ABPDILFM=ABPDILFM+:ABPDILFM:,ABPDIKG=ABPDIKG+:ABPDIKG:  "
                       + " WHERE  ABPMANDANT=:ABPMANDANT: AND ABPAUFKRS=:ABPAUFKRS:  AND ABPAUFLFD=:ABPAUFLFD: AND ABPAUFPOS=:ABPAUFPOS:";
            or1.CommandText = INTEXDBC.InjectData(or1.CommandText, dwData);
            Connect2Proxy(or1);
        }
    }
}
